https://github.com/lnvaldez/minimax-simulator
https://github.com/lnvaldez/minimax-simulator
algorithm fun minimax pygame python simulator strategy
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lnvaldez/minimax-simulator
- Owner: lnvaldez
- Created: 2024-05-27T17:31:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-09T15:33:53.000Z (over 1 year ago)
- Last Synced: 2025-06-16T03:13:56.650Z (4 months ago)
- Topics: algorithm, fun, minimax, pygame, python, simulator, strategy
- Language: Python
- Homepage:
- Size: 3.1 MB
- Stars: 1
- 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 git@github.com: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