Skip to content

Latest commit

 

History

History

find-your-hat

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Find your hat terminal game

Screenshot 2023-08-20 at 17 38 03

Challenge prompt

Build an interactive terminal game. The scenario is that the player has lost their hat in a field full of holes, and they must navigate back to it without falling down one of the holes or stepping outside of the field. Codecademy exercise.

Features

  • Users can specify the size of a square game field (4 - 24), field size: input x input
  • Generate a field with a random amount of holes
  • Users can navigate around the field using the WASD keys
  • Game events:
    • Falling of the field
    • Falling in a hole
    • Finding the hat – and winning the game!
  • Users can ifinitely restart the game with a new field