Skip to content

som1197/2-power-tile-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

2-power-tile-game

This game is based on https://poweroftwo.nemoidstudio.com/1024 where the numbers are added up to reach the overall total/target score which is a power of 2.

To run the game, the base code can be run using any IDE or via python shell. On running, the program starts by randomly initializing the game map.

image

It then asks the user to enter the target value for winning the game.

image

This indicates the power of two required to be acheived on pressing the keys. Currently this value should be set to greater than 4.

On entering the value, the user is free to start playing by pressing any of the arrow keys to navigate the position of the numbers on the game board.

The program also displays a message indicating which arrow key is pressed and the state of the game map after the operation.

image

Moreover, it also displays the current score of the user.

image

After any arrow key is pressed, a new game map is created with a corresponding 2 placed at any random location in the map

image

To quit the game, "ESC" key can be pressed. If the user presses any other key except for the arrow keys by mistake, the console displays an "INVALID KEY" message.

image

image

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages