项目作者: vipenl26

项目描述 :
--tic-tac-toe--
高级语言: Python
项目地址: git://github.com/vipenl26/tic-tac-toe.git
创建时间: 2020-09-17T05:56:02Z
项目社区:https://github.com/vipenl26/tic-tac-toe

开源协议:MIT License

下载


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
    1. 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