Tic-Tac-Toe is a 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.
- Ruby
- Two players are required to play the game.
- The first player is X and the second player is O.
- The players are required to input numbers between 0 - 8, to pick a position in the board.
- If the player pick a position that is occupied, the player will be required to pick another position.
- The first player to get identical letter in the row or column or left and right diagonal wins the game.
- If no identical letter occurs and the board is full, the game will end in a draw
- Run this command line: bin/play_game.rb
👤 Adewale Adeshola
- Github: @githubhandle
- Twitter: @twitterhandle
- Linkedin: linkedin
👤 Roman Nikolaev
- Github: @githubhandle
- Twitter: @twitterhandle
- Linkedin: linkedin
Give a ⭐️ if you like this project!
- Hat tip to Microverse