Find my Hat

Woman wearing a sun hat
Find my hat

This was my JavaScript assessment during my course. The codes are here:

I changed a couple of things from what was submitted. I changes the movement keys to the classic game keys WSAD and made the board bigger (10 by 10).

The concept is the same. Generate a random number of holes based on a difficulty modifier and place the hat randomly on the playing field and doesn’t land on a hole.

The representation is quite basic. Simply ‘*’ for the character, ‘0’ for holes and ‘^’ for the hat. Previously I used VSCode as my Integrated Development Environment (IDE), now using IntelliJ Ultimate for development.


Posted in:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: