Pikachu++ is a console-based C++ game implemented in a small, self-contained project. It provides a tile-matching game rendered in the console, with simple assets and highscore persistence.
- A Windows system.
- A working C++ toolchain (for example, MinGW-w64) available from a command prompt.
- Administrator privileges when running the compiled program.
-
Open a Command Prompt or PowerShell.
-
Change directory to the project root where the repository is located. Example:
cd C:\path\to\pikachu -
Compile the project with this command:
g++ src/main.cpp src/Board/*.cpp src/BoardRenderer/*.cpp src/Console/*.cpp src/Game/*.cpp src/Menu/*.cpp -I src -lwinmm -o pikachu.exe
- Run the produced executable as administrator: right-click
pikachu.exeand choose "Run as administrator".
Running with administrator privileges is required for the game to apply certain console window settings (for example setting window width/height, changing the console title, or other console configuration calls).
Run the script runPikachu.bat. It contains the commands to compile and run the project as administrator. If the program requires administrator rights, selects Yes and continue.
If you want to inspect or run the compile steps manually, open runPikachu.bat in a text editor.
Top-level files and folders:
-
runPikachu.bat: Windows batch script used to compile and/or run the project. -
settings.txt: Runtime settings used by the game. -
highscores.csv: Highscore persistence file. -
assets/: Game assets and sound effects.title.txtbackground/easy.txtmedium.txthard.txt
sfx/(includes sound-effect files)
-
src/: Main source tree.main.cpp: Program entry point.Board/:2DLinkedList.hArrayBoard.cppArrayBoard.hBoard.cppBoard.hCoordinate.hLinkedBoard.cppLinkedBoard.h
BoardRenderer/:ArrayBoardRenderer.cppArrayBoardRenderer.hBoardRenderer.cppBoardRenderer.hLinkedBoardRenderer.cppLinkedBoardRenderer.h
Console/:Colors.cppColors.hConsole.cppConsole.hConstants.hInput.cppInput.hRenderer.cppRenderer.h
Game/:Game.cppGame.hHighscores.cppHighscores.hResult.h
Menu/:Button.cppButton.hMenu.cppMenu.hOptionsList.cppOptionsList.h
- If you don't have a C++ toolchain installed, install MinGW-w64 or and ensure the compiler (
g++) is on your PATH. - This is a small educational project for Object-Oriented Programming course at Faculty of Physics and Engineering Physics, VNU-HCMUS.