Find my 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.

Leave a Reply

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

WordPress.com Logo

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

Google photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s