Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frostyfeet909/tic-tac-toe-with-minimax
Python implementation of tic tac toe, solved via minimax
https://github.com/frostyfeet909/tic-tac-toe-with-minimax
Last synced: 18 days ago
JSON representation
Python implementation of tic tac toe, solved via minimax
- Host: GitHub
- URL: https://github.com/frostyfeet909/tic-tac-toe-with-minimax
- Owner: frostyfeet909
- Created: 2021-04-06T20:35:05.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-20T12:37:02.000Z (over 3 years ago)
- Last Synced: 2024-11-10T23:39:11.504Z (3 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tic Tac Toe with Minimax
A text based implementation of tic tac toe, where you can play against a bot using the minimax algorithm.
## Installation
No additional requirements are needed apart from the lastest [python3](https://www.python.org/downloads/).
## Usage
```python
import TicTacToe as tm
import TicTacToe.bots as tm_botsbot_minmax = tm_bots.Minimax_Bot("x", "o", "Bob")
bot_random = tm_bots.Random_Bot("o", "x", "Bill")game = tm.Game([bot_minmax, bot_random])
game.run()
# Starts a game with one bot playing random moves and the other using the minimax algorithm
```This is also illustrated in `Tests/it_works.py`
```bash
python it_works.py
# Runs the above example
```## License
me no know