A simple simulation of a game of cat and mouse.
The mouse
- Can see as far as possible in every direction
- Moves randomly one space at a time when neither the cat or cheese are visible
- Goes in any direction other than the cat when it sees the cat
- When it sees the cheese, will head straight for it
The cat
- Can see two spaces ahead of it in every direction
- Moves randomly one space at a time when not in chase
- When it sees the mouse, will head straight for it
Compile all the c++ files with your compiler of choice and then run the executable.
Before each game, the user will be prompted to input a number of rounds before the game is automatically terminated.
When simulating the game, input "c" to proceed to the next turn. All turns can be skipped by inputting "s" and a detailed mode with more information for each turn can be toggled by inputting with "d". Input "q" to quit the game early.
After the game is finished, the user is prompted to play again.