Skip to content

omololevy/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TIC TAC TOE

This is a project on a python language to implement the Tic Tac Toe game.

Sunday October 24 2021

By

  • OMOLO LEVY
  • CLARA METTO

Description

This program allows players to;

  • Input something among 1-9 to select a slot
  • If they enter anything else, it tells them to go again.
  • Check if the input is already taken
  • Toggle between users upon succesful move
  • Add input to the board
  • Check if user won: checking rows, columns and diagonals

Rules

  • The objective of Tic Tac Toe is to get three "X" or "O" in a row, column or diagonally (known as win-state), played on a three by three game board.
  • The first player is known as X since his/her input are "Xs" and the second is O coz his/her input are "Os".
  • Players alternate placing "Xs" and "Os" on the game board until either oppent has either of the three win-state or all nine squares are filled (The latter occurs only in stalemate/draw).
  • X always goes first, and in the event that no one has three in a row, the stalemate is called a cat game.

Project live site

This is the live link to the repo

Image

Setup instructions

  • Clone the program from the online repo
  • Click on the code button to clone or download

Technologies Used

  • Python

Pending Issues

  • Implementing unittest. (Should be improved soon)
  • Also you can make a pull request to this repo and correct or implement the above.

Support and contact details

Contact me @omololevy@gmail.com

License

The project is under MIT license Copyright © 2021.All rigths reservedg

Releases

No releases published

Packages

No packages published

Languages