Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lnvaldez/minimax-simulator

🐱🐭 A grid-based simulation where the cat uses Minimax to catch the mouse, and the mouse uses Minimax to escape. Includes visual representation, mute button, restart, and round tracking.
https://github.com/lnvaldez/minimax-simulator

algorithm fun minimax pygame python simulator strategy

Last synced: about 1 month ago
JSON representation

🐱🐭 A grid-based simulation where the cat uses Minimax to catch the mouse, and the mouse uses Minimax to escape. Includes visual representation, mute button, restart, and round tracking.

Awesome Lists containing this project

README

        

# 🐱🐭 Cat and Mouse Simulator: Minimax Strategy

This project is a simulation of a cat and mouse chase, where the cat's objective is to catch the mouse, and the mouse's goal is to survive as long as possible. The simulation employs the Minimax algorithm to model intelligent behavior for both characters.

- **Cat**: Uses Minimax strategy to minimize the distance to the mouse.
- **Mouse**: Uses Minimax strategy to maximize the distance from the cat and avoid being caught.

## ✏️ Features:

- Grid-based simulation environment.
- Mute button for toggling background music.
- Visual representation of the cat and mouse.
- Restart functionality to run multiple simulations.
- Count functionality to track the number of rounds won by the cat and the mouse.

## 🧑🏽‍💻 How to Run:

```
git clone [email protected]:lnvaldez/Minimax-Simulator.git
cd Minimax-Simulator
pip install pygame
python main.py
```

🤝 Contributing 🤝

- Feel free to [Fork](https://github.com/lnvaldez/Virtual-Pet-Bot/fork) this repository, create a feature branch and submit a pull request