This project is a classic Tic-Tac-Toe game built using Python. It was developed as part of the final project for the CSC1024 Programming Principles course at [Your University Name].
The Computer Versus Human Tic-Tac-Toe Game is a 2-player game played on a 3x3 grid. One player represents the human and uses 'X', while the other, although not AI-driven, represents the computer and uses 'O'. The computer makes random moves. The objective is simple: achieve three of your symbols in a row, either vertically, horizontally, or diagonally, to win the game.
-
Player vs. Computer: Challenge yourself against a computer opponent that follows predefined rules and strategies for gameplay.
-
Interactive Gameplay: Experience a user-friendly command-line interface that allows players to make their moves by specifying row and column numbers.
-
Win Detection: The program accurately detects when a player has won or when the game ends in a draw.
To get started with the Computer Versus Human Tic-Tac-Toe Game, follow these steps:
- Clone this repository to your local machine.
- Run the game by executing
python tic_tac_toe.py
. - Enjoy hours of fun as you battle it out with the computer for Tic-Tac-Toe supremacy.
If you'd like to contribute to this project, feel free to open an issue or submit a pull request. We welcome contributions and improvements from the community!
- Special thanks to Sunway University for the opportunity to work on this project as part of the CSC1024 Programming Principles course.
- Thanks to the Python community for creating and maintaining helpful libraries and tools.
Have fun playing Tic-Tac-Toe against the computer!