Skip to content

izmirli/memory-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

memory-game Build Status

A python cli memory game.

🀄 Game Description

A player guesses where are pairs fo shapes (letters) on the board.

🔢 Game Setup

At game start, the player can configure the game board size by setting its number of rows and columns - board size should be with an even number of cells that is between 4-52 (rows X columns = cells).

🔁 Game Turns

Each turn the player choose 2 cells to reveal. After he enters his first choice, that cell is revealed on the board, and he can see it before choosing the 2nd cell to reveal.

✅ If these 2 cells holds a pair of identical shapes (letters), they stay revealed and next turn will start.

⏳ If it isn't a matching pair, player will get 5 seconds to memorize them before they are covered again and next turn will start.

A cell to reveal is chosen by entering its column and row separated by a comma - 🎯 0,0 for the top left cell. A 4 by 4 board will look like this:

  0   1   2   3
0 * | * | * | *
 ---+---+---+---
1 * | * | * | *
 ---+---+---+---
2 * | * | * | *
 ---+---+---+---
3 * | * | * | *

🏁 Game End

Game is won when all pairs are revealed. After a game is ended, player can choose to play again, if he doesn't, a summery will be printed:

  • 🎱 Number of games played.

  • 🏆 Best game for each board played (minimum number of moves).

About

A python cli memory game.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages