Skip to content

A ruby app that plays naughts and crosses with an AI player

Notifications You must be signed in to change notification settings

jamesreilly5/naughts-and-crosses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

naughts-and-crosses

A simple program with some basic AI that plays naughts and crosses

Alt text

Problem

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 text­only console interface is fine.

Dependencies

  • Ruby 2.0+
  • Bundler

Setup

gem install bundler

bundle install

Running the game

bundle exec rake naughts_and_crosses:play

Running the tests

bundle exec rake

Known issues

  • Game has no knowledge of diagonals being winning lines yet

Troubleshooting

If you're using zshell and have issues interpeting return characters via user input, try using terminal instead

About

A ruby app that plays naughts and crosses with an AI player

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages