Skip to content

TedXpro/Game-Development

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🕹️ C++ Terminal Games Collection

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.

🚀 Getting Started

Prerequisites

To build and play these games, you need:

  • A C++ Compiler (GCC/MinGW is recommended for Windows).
  • Git (for version control).

Quick Setup (Windows)

  1. Install MinGW: Download here or use choco install mingw.
  2. Add to PATH: Ensure your C++ compiler is in your System Environment Variables.
  3. Verify: Open a terminal and type g++ --version.

🎮 The Games

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.

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.

🛠️ How to Build

Option 1: Build Everything (Recommended)

You can compile all games at once using the provided batch script:

  1. Double-click build_all.bat in the root directory.
  2. The script will automatically find every game and generate the executables.

Option 2: Manual Build

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.exe

📜 License

This project is licensed under the MIT License. Feel free to use, modify, and share!

About

🕹️ A growing collection of premium terminal-based games built with C++. Featuring strategic AI engines (MinMax), local multiplayer modes, and vibrant ANSI-powered interfaces. A modern take on classic retro and board games.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors