You need to install SDL2 and SDL2_ttf libraries for Windows/MinGW:
- Install MSYS2 from https://www.msys2.org/
- Open MSYS2 MinGW 64-bit terminal
- Run:
pacman -S mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_ttf
- Download SDL2 development libraries (MinGW) from https://www.libsdl.org/download-2.0.php
- Download SDL2_ttf from https://www.libsdl.org/projects/SDL_ttf/
- Extract and add to your MinGW include/lib directories
g++ -std=c++17 -I. SameGame.cpp main.cpp -o SameGame.exe -lmingw32 -lSDL2main -lSDL2 -lSDL2_ttf./SameGame.exe- Mouse Hover: Highlight clusters
- Left Click: Remove cluster
- R Key: Restart game
- ESC Key: Quit
SameGame.h- Game logic class headerSameGame.cpp- Game logic implementationmain.cpp- SDL2 GUI implementation