Share your repls and programming experiences

← Back to all posts
Memory Game Project Part 2
tr29038 (1)

/
Output rules of the game
Initialize 2d matrix consisting of sporadically placed integer pairs in the range of 1..BOARD_SIZE^2/2
Display generated board with revealed slots for a specified amount of time
Clear console
WHILE true:
Display game board
Prompt player to input a possible match
Clear console
Display game board with player's match guess for specified amount of time
Clear console
If the guess was incorrect, conceal the slots' values on the board
/