Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unbeatable Tic-Tac-Toe in Ruby

Features:

  • Terminal User Interface
  • Either Human or Computer can go first
  • Can play Human vs Human and Computer vs Computer as well
  • Computer player has two options:
    • Easy (random selection)
    • Unbeatable (minimax algorithm)

Getting Started

  1. Make sure you have Ruby and Bundler installed.
  2. Clone the repo
git clone https://github.com/arootroatch/ruby-ttt.git

Running the Tests

cd ruby-ttt

bundle install

bundle exec rspec -f d

Playing the Game

cd ruby-ttt/lib

ruby tic_tac_toe.rb

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages