Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Labyrinth: map functionality #55

Open
graninas opened this issue Jun 12, 2020 · 0 comments
Open

Labyrinth: map functionality #55

graninas opened this issue Jun 12, 2020 · 0 comments
Assignees
Labels
advanced task enhancement New feature or request good first issue Good for newcomers showcases

Comments

@graninas
Copy link
Owner

graninas commented Jun 12, 2020

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
advanced task enhancement New feature or request good first issue Good for newcomers showcases
Projects
None yet
Development

No branches or pull requests

2 participants