A single player game of tic-tac-toe designed to be unbeatable.
- Allows for a human player
- Has a computer player
- Computer always wins when it can
- Computer never loses
- Clone repository onto your local computer
- In terminal navigate to your local Tic-Tac-Toe-with-TDD/ folder
- Type bundle install
- Type ruby app.rb
- Try to beat the computer
- Navigate into spec/ folder
- Type rspec [name-of-test-file.rb] --color --format documentation
- Minimax: A recursive algorithm that allows the computer player to find the best possible move based on the assumption that its opponent is also trying to win. It does this by ranking winning moves positively, losing moves negatively and draws as a zero. It then returns which current move it can take that will return the maximum ranked ending game state.