It is an implementation of the popular Tic-tac-toe game using ruby only. To play, open your command prompt or terminal.
- First, in your Terminal/Commandline navigate to your desired location where you want this folder installed
- clone this Repo
git clone https://github.com/kwizl/tic-tac-toe.git
- Enter into the project folder
cd tic-tac-toe
- To start the game, run this command
./bin/main.rb
We've made the game quite as interactive as possible, but for now, only one person can control inputting the choices of the two players.
- To win this game, a player should try to be the first to align himself/herself three-times consecutively on a straight line; either vertically, horizontally or diagonally and at the same time always try to prevent his/her opponent from achieving same first.
- If none of the players can occupy three consecutive boxes before the nine boxes are exhausted, no player wins the round.
- At the start of the game, it prompts both players to input their names. If there are no names, default names are assigned(Player 1 or Player 2) to them.
- A player is allowed to input Numerical values from 1 to 9 only to occupy a slot on the game board
- A player cannot choose a chosen slot. ENJOY THE GAME!!
- Ruby
- Rubocop Linter
- Stickler CI
👤 Martin Njoroge
- Github: @kwizl
- Twitter: @NjoroKaris
- Linkedin: martin njoroge
👤 Alfred Ezaka
- Github: @codecell
- Twitter: @the_codecell
- Linkedin: ezaka alfred