An open API service indexing awesome lists of open source software.

https://github.com/rajjitlai/tictactoe

A classical Tic-Tac-Toe game application using C++
https://github.com/rajjitlai/tictactoe

Last synced: 29 days ago
JSON representation

A classical Tic-Tac-Toe game application using C++

Awesome Lists containing this project

README

          

# TIC TAC TOE
A classical Tic-Tac-Toe game application using C++

💫 About this project:

⭐ This project is created using the C++ programming language.

⭐ INTRODUCTION:

➡️ In this game, two players alternately place X's and 0's into a 3x3 playing field.

➡️ Before starting the game, both the players have to agree as to who will make the first move and with which symbol.

➡️ After the first move, the players alternately place their marks in any empty cell.

➡️ The goal of the game is to be the first player with same three marks in a horizontal, diagonal or vertical line.

➡️ If there are no empty cells and neither player has a winning combination, the game is a draw.

➡️ The program creates a simple and user-friendly interface first for the user.

➡️ Then it asks the user to enter their choices and verifies whether the choices exercised by the user has been opted before or not.

➡️ If not,it allocates the user the opted place and shows the necessary change on the tic-tac-toe table.

➡️ After each move, the program checks whether that move results in the win of the player.

➡️ If yes, it displays the message and the game is over, else, the other player gets the chance.

➡️ If all places fill out without anyone winning the game, the game ends in a draw.

⭐ INSTRUCTIONS:

➡️ 1. This is a game to be played by two players.

➡️ 2. The moves by Player 1 is denoted by X and moves by Player 2 by 0.

➡️ 3. The aim of the game is to complete a row, or a diagonal first.

➡️ 4. The Player who has three symbols in line first wins.

➡️ 5. To select a place for a move first enter the row no & then the column no.

🤗 Thank you so much for visiting!