项目作者: Isomurodov

项目描述 :
Interactive tictactoe with an AI opponent
高级语言: Python
项目地址: git://github.com/Isomurodov/Tic-Tac-Toe.git
创建时间: 2021-05-07T05:06:08Z
项目社区:https://github.com/Isomurodov/Tic-Tac-Toe

开源协议:

下载


https://user-images.githubusercontent.com/44898055/210678922-16d91d1b-b05f-440d-84bd-9983b21d705b.mp4

Tic-Tac-Toe

Interactive tictactoe with a built-in opponent

The game can be played between two users against each other or between a user and the computer with adjustable levels of difficulity. Currently available levels are Easy and Medium/Difficult. Impossible level is to be added.

Instructions (you may want to watch the demonstration video above):

  1. In order to initialize the game, you should enter the following three commands: start #player1 #player2

    1. 1. "start"
    2. 2-3. either "user" (for human player) or "easy" / "medium" (for built-in opponent with the respective level of difficulty)
    3. Examples:
    4. start user medium (human vs medium-level built-in player)
    5. start medium easy (medium-level built-in player vs easy-level built-in player)
    6. start user user (two human players)
  2. Now you can enter enter the coordinates of your next move

    1. Examples:
    2. 2 2
    3. 1 3
    4. 2 2
  3. To end the game, enter “exit”