JIndiana Jones
By E.Hooijmeijer
1 Inleiding
Avonturier zijn is hard werken zo weet JInidiana Jones. Iedere keer je leven wagen voor allerlei
idiote spullen. Maar ja, dat hoort bij het werk. In dit geval is het Museum van Antieke Computers
de opdrachtgever. Zoals gebruikelijk heeft een kwaadaardige wetenschapper een aantal belangrijke
artifacten gestolen en verstopt in een ondergronds complex. The usual dus.
2 Opdracht
Leid JIndiana Jones door het ondergrondse complex, vind de schat, keer terug naar de uitgang en
verlaat het complex. Om de klus eenvoudiger te maken heeft JIndiana de graffiti spuitbussen
van zijn neefje achterovergedrukt. Hij hoopt op deze manier een spoor achter te kunnen laten
om zo te kunnen vaststellen waar hij al geweest is en hoe de weg terug loopt.
3 Voorbeeld
Gegeven het volgende doolhof :
xxx JIndiana begint in 'S'. De schat is 'T'. JIndiana markeert de huidige
xxTxx locatie. Hij gaat naar rechts en markeert de locatie. JIndiana kan nu
xS x kiezen en kiest om naar rechts te gaan. Hij markeert de locatie. Oeps.
xxxxx Een doodlopende gang. JIndiana moet terug. JIndiana her-markeert deze
locatie met een andere kleur. En doet een stap terug. Hij gaat nu omhoog.
en vind de schat. Hij pakt de schat en volgt daarna het spoor terug naar de
uitgang. Hij verlaat het doolhof.
4 Tips
- Er is altijd maar 1 MazeVisitor per doolhof.
- De MazeVisitor heeft een handige toString methode.
- Gebruik de animaties rechts onder in het scherm.
Test case 1 : A Simple Plan
Find the Treasure then Leave through the Exit.
The treasure you're looking for is : The original manuscript of the FoG's Designy Patterns book
The maze looks like this :
xxxxx
xS Tx
xxxxx
S - starting position and exit
T - the Treasure
You have 100 moves to find and return with the treasure.
Test case 2 : Maze of the Minotaur
Find the Treasure then Leave through the Exit.
The treasure you're looking for is : The autograph of John Rodson, inventor of the Sping Famewalk
The maze looks like this :
xxxxxxx
x x
x xxx x
x xT x
x xxxxx
x Sx
xxxxxxx
S - starting position and exit
T - the Treasure
You have 100 moves to find and return with the treasure.
Test case 3 : In the Middle
Find the Treasure then Leave through the Exit.
The treasure you're looking for is : A copy of the C-64 Game 'Master of Magic'
The maze looks like this :
xxxxxxx
x x
x x x x
x T x
x x x x
x Sx
xxxxxxx
S - starting position and exit
T - the Treasure
You have 100 moves to find and return with the treasure.
Test case 4 : So close, yet so far
Find the Treasure then Leave through the Exit.
The treasure you're looking for is : A black, cube shaped Next WorkStation
The maze looks like this :
xxxxxxxxx
x x
x x x x x
xxx x xxx
x x Tx
x xxxxxxx
x x xSx
x xx xx x
x x
xxxxxxxxx
S - starting position and exit
T - the Treasure
You have 100 moves to find and return with the treasure.
Test case 5 : (C)
Find the Treasure then Leave through the Exit.
The treasure you're looking for is : 'quite original spices' by Dame Jarwin
The maze looks like this :
xxxxxxx
x x
x xxx x
x x x x
x xT x
x x x x
x xxx x
x Sx
xxxxxxx
S - starting position and exit
T - the Treasure
You have 100 moves to find and return with the treasure.
Test case 6 : Roundabout
Find the Treasure then Leave through the Exit.
The treasure you're looking for is : a lottery ticket
The maze looks like this :
xxxxxxxxxxxxxxxxx
x x x x xTx
x x x x x x x
x x x x x x
xSx x x x x
xxxxxxxxxxxxxxxxx
S - starting position and exit
T - the Treasure
You have 100 moves to find and return with the treasure.