marvinraj / tic-tac-toe-game

Computer Versus Human Tic-Tac-Toe: Enjoy classic Tic-Tac-Toe fun as you face off against a computer opponent in this Python-based game project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Computer Versus Human Tic-Tac-Toe Game

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

How it Works

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.

Features

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

Getting Started

To get started with the Computer Versus Human Tic-Tac-Toe Game, follow these steps:

  1. Clone this repository to your local machine.
  2. Run the game by executing python tic_tac_toe.py.
  3. Enjoy hours of fun as you battle it out with the computer for Tic-Tac-Toe supremacy.

Contributing

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!

Acknowledgments

  • 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!

About

Computer Versus Human Tic-Tac-Toe: Enjoy classic Tic-Tac-Toe fun as you face off against a computer opponent in this Python-based game project.


Languages

Language:Python 100.0%