Skip to content

DejazmachMolla/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TIC-TAC-TOE Game

TIC-TAC-TOE is a paper-and-pencil game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner. This project creates a software based replacement for the paper-and-pencil game.

Built With

  • Ruby
  • Rubocop

Requirements

  • The code should demonstrate Object Oriented Design
  • The workflow used should be Git flow and 4 feature branches need to be created
  • The game should validate user input and handle winning, draw(tie) behaviors

Getting Started

  • Clone the project in to your computer using git clone https://github.com/DejazmachMolla/tic-tac-toe.git
  • cd into the tic-tac-toe folder
  • run main.rb file by typing bin/main.rb on the command prompt

Game Instructions

  • Player 1 and player 2 will be asked for their name
  • A playing board will be presented as shown in the following screenshot

screenshot

  • Players will choose numbers between 1 and 9 that are not already chosen
  • The two players will choose numbers alternatively and the number chosen will be replaced by an X or O symbol as shown below

screenshot

  • The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row will win
  • If winning doesn't happen, a draw(tie) will happen in the end
  • The player that won will be congratulated or the draw of the game will be informed for the players
  • The players will be asked to continue or not with another game
  • The game will be resetted if the players would like to continue or exited if they are done playing

Authors

👤 Dejazmach Molla

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Microverse

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages