https://github.com/samcfuchs/tictactoe
TicTacToe related programs and AIs. Dependent on one another.
https://github.com/samcfuchs/tictactoe
Last synced: 2 months ago
JSON representation
TicTacToe related programs and AIs. Dependent on one another.
- Host: GitHub
- URL: https://github.com/samcfuchs/tictactoe
- Owner: Samcfuchs
- Created: 2015-04-27T02:54:55.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-06T23:54:04.000Z (almost 10 years ago)
- Last Synced: 2025-01-18T11:44:36.835Z (4 months ago)
- Language: Python
- Size: 164 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TicTacToe
TicTacToe related programs and AIs. Dependent on one another.## RoteAI
A program built with a knowledge of how to win TTT. It cannot lose under any circumstances. It goes first, and follows
a very complex tree of evaluations.However, I wrote it a long time ago. It is not at all modular, and can only run on its own. It's now essentially legacy
code that may be used in a later version of the AI that is modular. It may be resurrected, but only to test the system.
In terms of code, it's just not a very good system.## Interface
This is really the heart and soul of the system. It contains the object Game() which runs the game. I think the code is
pretty well-documented, so I won't describe it here, but it does a good job of handling the two ends of the program, dealing
with the board, etc.## Human
This is the first end I made for Interface. It just asks for user input, and that's it. It takes on instantiation either
player1 or player2, so if you play pvp, it can make clear what side you're giving input for.## PvP
Much like RoteAI, this is legacy code from when I originally wrote this program. It will only serve as a place to get some
important methods, like the win determination code. It really doesn't need to be in the repo, as it's not changing,
but it makes life easier when rolling code over.