This is a simple Tic Tac Toe game implemented in Python as a project for the first semester of ICT. The project is designed to help beginners build programming basics using only if and elif statements, with no advanced programming techniques or libraries.
- Multiplayer Mode: Two players can play against each other.
- Single Player Mode: Play against the computer. The computer is unbeatable—either the game draws or the computer wins.
- Simple Console Interface: All interactions happen in the terminal.
- Educational Purpose: The code is intentionally written using only basic control structures to help students understand fundamental programming concepts.
-
Make sure you have Python installed (version 3.x).
-
Download the file
FA22-BCS-048 (Final Tic Tac Toe) submitted WITH COMMENTS.py. -
Open a terminal and navigate to the directory containing the file.
-
Run the game with:
python "FA22-BCS-048 (Final Tic Tac Toe) submitted WITH COMMENTS.py"
- This project is for educational purposes and demonstrates the use of basic Python constructs.
- No functions, classes, or advanced data structures are used beyond what is necessary for the assignment.
- In single-player mode, the computer uses a hardcoded strategy to ensure it never loses.
Course: ICT, First Semester
Language: Python