Giter VIP home page Giter VIP logo

tic-tac-toe's Introduction

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 @[email protected]

License

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

tic-tac-toe's People

Contributors

omololevy avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.