Skip to content

eslam-rabiee/swe-git

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

swe-git

Tic-Tac-Toe-Game-using-C++ (OOPS)

Tic-tac-toe is a game in which two players take turns in drawing either an 'X' or an ' O' in one square of a grid consisting of nine squares. The winner is the first player to get three of the same symbols in a row or a column or a diagonal.

OBJECTIVE:

This project aims to develop a Tic Tac Toe game using OOPS concept in C++. It mainly consists of developing and implementing a computer program that plays Tic Tac Toe against another player.
In order to understand what Tic Tac Toe game is and how to play the game, below is the description.

GAME DESCRIPTION:

Tic Tac Toe is a two-player game (one of them being played by computer or human). In this game, there is a board with 3 x 3 squares.

The two players take turns putting marks on a 3x3 board. The goal of Tic Tac Toe game is to be one of the players to get three same symbols in a row - horizontally, vertically or diagonally on a 3 x 3 grid. The player who first gets 3 of his/her symbols (marks) in a row - vertically, horizontally, or diagonally wins the game, and the other loses the game. The game can be played by two players.

GAME RULES:

A player can choose between two symbols with his opponent, usual game uses "X" and "O".

  1. Initially, the player gets an option to choose to play with either "X" or "O"

  2. Player 1 and 2 take turns making moves with Player 1 playing mark “X” and Player 2 playing mark “O”.

  3. A player marks any of the 3x3 squares with his mark ("X" or "O") and their aim is to create a straight line horizontally, vertically or diagonally with two intensions:
    a. One of the players gets three of his/her marks in a row (vertically, horizontally, or diagonally) i.e. that player wins the game.
    b. If no one can create a straight line with their own mark and all the positions on the board are occupied, then the game ends in a draw/tie.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 100.0%