Skip to content

This is a classic Tic Tac Toe game written in Python that you can play in your terminal! It supports both 1-player mode (vs computer bot) and 2-player mode (with a friend), with a neat ASCII art display using the pyfiglet module.

License

Notifications You must be signed in to change notification settings

Vaibhav-coder-king/tic-tac-toe-cui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ•น๏ธ Tic Tac Toe Game in Python (Single & Two Player)

This is a classic Tic Tac Toe game written in Python that you can play in your terminal! It supports both 1-player mode (vs computer bot) and 2-player mode (with a friend), with a neat ASCII art display using the pyfiglet module.

๐Ÿ“ธ Demo

image image image

โœ… Features

๐ŸŽฎ Single-player mode (vs basic bot)

๐Ÿ‘ฏ Two-player mode (local)

๐Ÿ–ผ๏ธ Beautiful ASCII art UI using pyfiglet

๐Ÿ” Option to replay after a game ends

๐ŸŽฏ Win, lose, or draw detection with stylish result output

๐Ÿ› ๏ธ Requirements

Python 3.x

pyfiglet module

๐Ÿง  How the Bot Works (Single Player)

The bot makes random moves, offering a basic level of challenge. It doesn't use any AI or strategy algorithms like Minimax โ€” ideal for fun and casual play.

๐Ÿ”„ Game Rules

The board has 9 positions labeled 1 to 9.

Players take turns marking X or O on the grid.

First to align three marks in a row (horizontally, vertically, or diagonally) wins.

If all spots are filled without a winner, the game ends in a tie.

๐Ÿ™‹โ€โ™‚๏ธ Author

Made BY Vaibhav-coder-king

About

This is a classic Tic Tac Toe game written in Python that you can play in your terminal! It supports both 1-player mode (vs computer bot) and 2-player mode (with a friend), with a neat ASCII art display using the pyfiglet module.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages