Idea: to allow the player to track the exploration of the labyrinth. (Hint: the "print" command is a cheating and should be used for debug only.)
Stage 1:
- To enable this functionality, the player should find a special object in the labyrinth - a "map".
- The "map" object should be displaced in the labyrinth randomly (like "treasure").
- The "map" object should be correctly rendered by the rendering functions (it should be visible on "print")
- The "map" object should be of type "Content".
- The player should get a flag in the inventory that indicates that the "map" object is found.
Stage 2: Tracking algorithm
- The "map" command should display where the player has traveled so far.
- The tracking algorithm can be any (no special requirements).
Hints on data types:
- Trail can be of types Map.Map (
Map.Map Pos (Cell, Content) ), Set.Set ( Set.Set Pos ) or just a list ( [Pos] )
Hints on how to approach the task:
- Add a dummy command "map" with some trail predefined and rendered
Idea: to allow the player to track the exploration of the labyrinth. (Hint: the "print" command is a cheating and should be used for debug only.)
Stage 1:
Stage 2: Tracking algorithm
Hints on data types:
Map.Map Pos (Cell, Content)), Set.Set (Set.Set Pos) or just a list ([Pos])Hints on how to approach the task: