Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/lnvaldez/minimax-simulator
- Owner: lnvaldez
- Created: 2024-05-27T17:31:12.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-09T15:33:53.000Z (7 months ago)
- Last Synced: 2024-06-09T17:14:09.947Z (7 months ago)
- Topics: algorithm, fun, minimax, pygame, python, simulator, strategy
- Language: Python
- Homepage:
- Size: 3.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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