Skip to content

Latest commit

 

History

History

tic_tac_toe

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Project: Tic Tac Toe

From The Odin Project

Build a tic-tac-toe game on the command line where two human players can play against each other and the board is displayed in between turns.

Usage

Use the following command to run the application

  • from the root folder:
ruby tic-tac-toe/main.rb

OR

  • from inside the tic-tac-toe folder
ruby main.rb

Examples

  1. Run the app and choose number of rounds Image one

  2. Each player is given a turn to mark the board Image two

  3. First Player to complete set (column, row, or diagonal) wins the round Image three

  4. New round (in best of series) commences Image four

  5. First Player to complete set (column, row, or diagonal) within each round is awarded a point and a scoreboard is display After the final round, the scoreboard is displayed and best of series winner is announces Image five