Skip to content

simondebbarma/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

A game of tic-tac-toe in the CLI using Ruby, in partial fulfilment of the Microverse Cirricullum.


Built With

  • Ruby
  • Rubocop

Game Instructions

The object of Tic Tac Toe is to get three in a row. You play on a three by three game board. The first player is known as X and the second is O. Players alternate placing Xs and Os on the game board until either opponent has three in a row or all nine squares are filled. X always goes first, and in the event that no one has three in a row, the stalemate is called a cat game.

This game can be played only against another human player and on a single command line.

  • Start the game by following the instructions below.
  • Enter your names when promted.
  • Take turns as guided on-screen.
  • You can play the game again at the end of a round.

Getting started

Clone the repository to your local machine

$ git clone https://github.com/simonpeterdebbarma/tic-tac-toe.git

Go to your directory

$ cd tic-tac-toe

Run in terminal [You must have Ruby installed on your system.]

$ ruby bundle install

the command bundle install is important to install required gem for the game to start. After you finish type:

$ ruby bin/tic-tac-toe

Authors

👤 Certil Remy

👤 Simon Peter Debbarma


🤝 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

A game of tic-tac-toe in the CLI using Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages