Skip to content

ernest-mm/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

To anyone who might be reading this code:

This was my first programming project outside of courses and algorithmic exercises. There are many areas for improvement. I appreciate your understanding and patience.

Screenshots

Main Menu

Main Menu

In-Game

In-Game

Game ending in a draw

The game is a tie

Features

  • User-Friendly Interface: Simple and intuitive paper like UI for easy gameplay.
  • Two-Player Mode: Play against a friend on the same computer.
  • Turn-Based Gameplay: Players take turns on the same computer.
  • Winning Detection: Automatically detects when a player wins or when the game ends in a draw.

Installation

Requirements

  • Python 3.12.7 or higher
  • Pip
  • Git

Clone the repository

git clone https://github.com/ernest-mm/Tic-Tac-Toe.git

or with SSH if you have it configured

Navigate to the project directory

cd Tic-Tac-Toe

Install the requirements

pip install -r requirements.txt

Running the game

python src/main.py

How to Play:

  • The game board is a 3x3 grid.
  • Player 1 is 'X' and Player 2 is 'O'.
  • Players take turns placing their mark in an empty cell on the same computer.
  • The first player to get three of their marks in a row (horizontally, vertically, or diagonally) wins.
  • If all cells are filled and no player has three marks in a row, the game ends in a draw.

Development

  • Technologies Used:
    • Python 3.12.7
    • Pygame-ce 2.5.1

Credits

  • Developer: Ernest M.
  • Special Thanks:
    • Pygame Community for the excellent documentation and resources.
  • Sound Effects:
    • Paper_Flip_01 by Rookster - Link - License: Attribution 4.0
    • pen (marker pen) writes on paper by SSkiba88 - Link - License: Creative Commons 0

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

High resolution Tic Tac Toe game made with Pygame

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages