A simple tic tac toe game which consists of a bot created using the Minimax algorithm. Play with it for a while and if possible try to beat it.
Two players (player X, and player O) play on 3x3 grid. Player X is a human player, and player O is an AI. A player can put his/her letter (either X or O) in an empty cell in the grid. If a player forms a row, a column or a diagonal with his/her letter, that player wins and the game ends. If the grid is full and there’s no row, column or diagonal of the same letter, the game ends at draw. A player should try to win in the lowest possible number of moves.
- HTML, JS, CSS
- Minimax Algorithm
- Sounds from soundbible (see credit section)
- Area added sound = http://soundbible.com/419-Tiny-Button-Push.html
- Buttons clicked sound = http://soundbible.com/1705-Click2.html
- Victory sound = http://soundbible.com/1003-Ta-Da.html
- Error sound = http://soundbible.com/172-Computer-Error.html
- Refactor the code
- Make AI more efficient
- better user interface
- Mobile support
If you have any question regarding the project, feel free to contact me.