Skip to content

NataJenkins/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

A command line game built in ruby

screenshot

Built With

  • Ruby
  • Rubocop

Getting Started

-Should have ruby installed

Prerequisites

  • Ruby v2.7
  • bundler gem installed

Setup

  • Clone the git repo
  • run bundle install in root directory.

Usage

  • Open terminal
  • cd onto program folder
  • run ./bin/main.rb
  • Players should enter their names
  • A grid will be displayed so the first player can pick a cell to start the game
  • Players will select one cell on each turn until the game is over
  • Players cannot select an ocupied cell

Rules

  • Two players Game
  • The game is played on a grid that's 3 squares by 3 squares
  • Each player has a "X" or "O" Token
  • once a player get 3 marks on a row its the winner
  • If all 9 cells are occupied but none of the players got 3 marks in a row is a draft

Winning Combinations

screenshot

Testing

-Open the console -cd to the Tic-Tac-Toe project -Run gem install rspec -Run rspec

Authors

👤 Natalia Macias

👤 K

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

📝 License

This project is MIT licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages