Skip to content

The repo contains a python implementation of 2D and 3D TicTacToe game. Along with normal TicTacToe, it also contains the Infinite version of 2D and 3D TicTacToe which are more fun to play.

Notifications You must be signed in to change notification settings

Harsh-1618/reinforcement-learning-tictactoe

Repository files navigation

What's the repo about?

  • It's a TicTacToe game made in python using pygame and a lot of math!🫠 The gameplay contains sounds and manually created out of the box visuals.
  • The current release contains the following features:
    • Normal 2D TicTacToe game
    • Infinite 2D TicTacToe game (earlier x and o dissapears as the game progresses, so you gotta have good memory to win 🫡)
    • Normal 3D TicTacToe game (3x3x3)
    • Infinite 3D TicTacToe game (the most fun 😋)
    • Ability to change game resolution
    • Ability to change grid size of 2D TicTacToe

Some gameplay visuals:

Note that the below GIFs are compressed and have low resolution, hence they don't display the true quality of the game.

Normal 2D TicTacToe:

2d_ttt

Infinite 2D TicTacToe:

2d_inf_ttt

Normal 3D TicTacToe:

3d_ttt

Infinite 3D TicTacToe:

3d_inf_ttt

Getting started:

  1. Cloning the repo: You can clone the repo by typing git clone https://github.com/Harsh-1618/reinforcement_learning_tictactoe.git in the terminal. After cloning, you need to install dependencies with pip install -r requirements.txt. Finally, type python main.py to run the game.
  2. Running executable file: Or after cloning, you can just run main.exe by double clicking it if you're on windows.

Supporting media source:

  • The background music is from here (he may not own it), other sounds are from here. The fonts are from here.

python 3.10.11 is used in the project

About

The repo contains a python implementation of 2D and 3D TicTacToe game. Along with normal TicTacToe, it also contains the Infinite version of 2D and 3D TicTacToe which are more fun to play.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published