Welcome to my collection of classic terminal games built with C++. This project is a "Game Studio" style monorepo containing various board games and AI experiments.
To build and play these games, you need:
- A C++ Compiler (GCC/MinGW is recommended for Windows).
- Git (for version control).
- Install MinGW: Download here or use
choco install mingw. - Add to PATH: Ensure your C++ compiler is in your System Environment Variables.
- Verify: Open a terminal and type
g++ --version.
A standard 2-player version of the classic game. Perfect for playing with a friend on the same terminal.
An advanced version featuring:
- Unbeatable MinMax AI: The computer evaluates every possible game state and plays optimally.
- Best of 3 / Best of 5 Series: Live score tracking with round caps and alternating starters.
- Early Draw Detection: Automatically ends rounds when no winning moves remain.
- Colorized UI: Vibrant ANSI terminal colors with a live scoreboard.
3. Snake Pro
A high-performance terminal Snake game featuring:
- Flicker-Free Engine: Zero screen tearing via surgical per-cell rendering.
- 3 Playable Maps: Classic, Portal Run (wall teleporters), and Wide Arena.
- Adaptive Speed: Starts slow, escalates to blazing fast as your score climbs.
- Replay System: Session high score tracking with instant replays.
You can compile all games at once using the provided batch script:
- Double-click
build_all.batin the root directory. - The script will automatically find every game and generate the executables.
Each game has a main.cpp. To compile a specific game manually:
# Example for Tic-Tac-Toe Pro
cd SmartTicTacToe
g++ -static-libgcc -static-libstdc++ main.cpp -o smart_tictactoe.exe
./smart_tictactoe.exeThis project is licensed under the MIT License. Feel free to use, modify, and share!