Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Tic Tac Toe Game

Project Description

This is a console-based of the classic Tic Tac Toe game for two players. The game features an interactive interface, state-saving functionality, and a stats tracker. Players can save and load game states, view historical game statistics, and enjoy a user-friendly experience enhanced with colored visuals.

Features

  • Uses the colorama library to add colors to the console output.

How to Run the Project

  1. Ensure that you have Python installed on your system .
  2. Install the required dependency using pip:
    pip install colorama
    
  3. Run the script using Python:
    python tic_tac_toe_game.py
    
  4. Follow the on-screen instructions to play the game.

Instructions

  1. Choose "no" when prompted to load a saved game.
  2. Choose "yes" to resume from the last saved state.
  3. Choose "stats" to see previous game outcomes.
  4. Choose "restart" to start fresh and delete saved data.

Installation

  1. download this repository to your local machine.
  2. Navigate to the project directory in your terminal.
  3. Install the required library:
    pip install colorama
    

File Details

  • tic_tac_toe_game.py: Main script containing the game logic.
  • game_state.txt: Automatically generated file to store the current board state and player turn.
  • game_stats.txt: Automatically generated file to track game results (wins/draws).

Enjoy playing Tic Tac Toe!

About

A Tic-Tac-Toe Game

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages