Enjoy the Game!!!
Authors: Jing Zhang & Fengxiang Lan
Environment: Mac OS X EI Caption 10.11.6; python3 interpreter (version 3.6.1).
Documents: ‘basicTTT.py’ ‘advancedTTT.py’ ‘superTTT.py’
Steps for basicTTT:
- Open terminal under the current path of tic-tac-toe programs.
- Run the code with command line, ‘python3 basicTTT.py’
- You will see a alert that is ‘Choose X or 0?’, you can input ‘X’ or ‘x’ or ‘O’ or ‘o’.
- Then it will tell you the game start and show a blank board for you, it will let you enter your choice, you can enter the number [1,2,3,4,5,6,7,8,9].
- If you enter the right number, if will show the board which has the chess you had put.
- Then the computer will finish it choice, and the screen will tell you the choice.
- Repeat 4) until the screen show the result of the game.
- After that, a new game starts immediately (jump to step 3).
- Ctrl+C to exit the program.
Steps for advancedTTT and superTTT:
- Open terminal under the current path of tic-tac-toe programs.
- Run the code with command line, ‘python3 advancedTTT.py’ or ‘python3 superTTT.py’
- You will see a alert that is ‘Choose X or 0?’, you can input ‘X’ or ‘x’ or ‘O’ or ‘o’.
- Then it will tell you the game start and show a blank board for you, it will let you enter your choice, you can enter ‘X Y’, and X,Y is between [1…9]. And there must be a blank space between X and Y.
- If you enter the right number, if will show the board which has the chess you had put.
- If your number violation the rule that is your board number must be the last player’s chess position, you need to enter again.
- Then the computer will finish it choice, and the screen will tell you the choice.
- Repeat 4) until the screen show the result of the game. 8)After that, a new game starts immediately (jump to step 3).
- Ctrl+C to exit the program.
#Cautions:
- MUST USE PYTHON3.
- DO NOT ENTER ANY STRING EXPECT WHEN YOU CHOOSE X OR O