A simple program with some basic AI that plays naughts and crosses
Write a Ruby program that can play Noughts & Crosses with some intelligence built in. For example, the computer should be able to block winning moves. A simple textonly console interface is fine.
- Ruby 2.0+
- Bundler
gem install bundler
bundle install
bundle exec rake naughts_and_crosses:play
bundle exec rake
- Game has no knowledge of diagonals being winning lines yet
If you're using zshell and have issues interpeting return characters via user input, try using terminal instead