Skip to content

This Tic Tac Toe program uses MIN-MAX technique to play

Notifications You must be signed in to change notification settings

anirudhbagri/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation


Tic-Tac-Toe

This Tic Tac Toe program uses MIN-MAX technique to play.


Tic Tac Toe

Background

Tic-tac-toe, noughts and crosses, or Xs and Os is a paper-and-pencil game for two players who take turns marking the spaces in a three-by-three grid with X or O. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner. More..


Gameplay

In this game, you have to play against computer. The first chance is always given to the user. By inputing the coordinate you have to pick the position in the tic-tac-toe board. Let's consider a board: | 1 | 2 | 3 | | 4 | 5 | 6 | | 7 | 8 | 9 | So, if you want to pick the position 1, the you need to input 0 0. For position 2 --> 0 1 For position 2 --> 0 2 For position 2 --> 1 0 For position 2 --> 1 1 For position 2 --> 1 2 For position 2 --> 2 0 For position 2 --> 2 1 For position 2 --> 2 2


How to Contribute to this repository

  • Fork the repository (Click the Fork button in the top right of this page, click your Profile Image)
  • Clone the forked repository to your local machine.
git clone https://github.com/YOUR-GITHUB-USERNAME/Tic-Tac-Toe.git
  • change the present working directory
cd Tic-Tac-Toe
  • Make a new branch
git checkout -b branch-name
  • Make change in the repository with the new branch.
  • push the changes.
git add -A
git commit -m "Your commit Message"
git push -u origin HEAD
  • Make a pull request.
  • Star the repository.

About

This Tic Tac Toe program uses MIN-MAX technique to play

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages