Skip to content

vipenl26/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About The Project

This is one player and two player tic-tac-toe game. In one player mode you can never win against the bot.

Built With

This project is built with python3. Pygame which is a python's module is used. MiniMax Algorithm is used for Bot.

Prerequisites

  • python
  • pygame
pip install pygame

USAGE

  • Execute the main.py file to play
  • After the game to play again, close the pygame window and execute the program again
  • To switch between one player and two player change value of bot_active(boolean variable) on line 8
  • To switch first chance change the value of first_play(boolean variable) on line line 7

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request