A kids' chess game built in Unreal Engine 5.7. You play White against a built‑in chess AI on a holographic board, set inside neon, cyberpunk‑styled arenas. Each chess piece has its own themed arena, selectable from an in‑game menu.
The chess rules and AI are real C++ — the project embeds the open‑source Pulse chess engine and drives it from the gameplay code, so moves are fully validated and the computer actually searches for replies.
To run the packaged game / play in editor
- Windows 10/11 (64‑bit). The project targets Direct3D 12 (Shader Model 6).
- A DirectX 12 GPU with hardware ray tracing (e.g. NVIDIA RTX 20‑series or AMD RX 6000‑series and newer). The project enables Lumen global illumination & reflections, hardware ray tracing, Substrate materials, and Virtual Shadow Maps — an older DX11‑only GPU will not render it correctly.
- Otherwise, Epic's published hardware & software specifications for Unreal Engine 5 apply.
Game specs
| Minimum | Recommended | |
|---|---|---|
| OS | Windows 10 64-bit | Windows 11 64-bit |
| CPU | Quad-core (Intel i5-8400 / Ryzen 5 2600) | 6+ cores (Intel i5-12400 / Ryzen 5 5600) |
| RAM | 8 GB | 16 GB |
| GPU | NVIDIA RTX 2060 / AMD RX 6600 (DX12, hardware ray tracing) | NVIDIA RTX 3060 / AMD RX 6700 XT or better |
| Storage | ~5 GB free (SSD strongly advised) | ~5 GB free on NVMe SSD |
| Input | Mouse required (left-click to move, right-click piece info, wheel to zoom) | — |
| Audio | Any Windows-compatible output (voice-over narration throughout) | — |
| Target | 1080p / 30 FPS | 1080p–1440p / 60 FPS |
To build / develop
- Unreal Engine 5.7 (the
.uprojectis bound to engine association5.7). - Visual Studio 2022 with the Game development with C++ workload.
- Git and Git LFS — all
.uasset/.umapbinaries are stored in LFS, so the repo is unusable without it.
git lfs install # one-time per machine
git clone https://github.com/LeineckerGames/ChessCadets.git
cd ChessCadets
git lfs pull # download the binary assets- Right‑click
ChessKids.uproject→ Generate Visual Studio project files (or just open it — the editor offers to build theChessKidsmodule). - Open
ChessKids.uproject. If prompted, build the C++ module. - Press Play. The game boots into
MainMenu(configured as the startup/default map).
Navigation flow: MainMenu → LevelSelect → a piece arena.
- The board, pieces, camera and rules are spawned and wired automatically — drop the actors in a level (or use the bootstrap script) and it just runs.
- You control White. Hover a square to highlight it, click one of your pieces to select it (legal targets light up), then click a target to move.
- After your move, the AI replies on a short delay. Difficulty controls how deeply the engine searches (see below).
- Checkmate, stalemate, threefold repetition and insufficient‑material draws are all detected; the result drives the Game Over widget.
| Class | Role |
|---|---|
AChessManager |
Central game logic. Wraps the Pulse engine, validates/applies moves, drives the AI, detects game over, and spawns/moves the visual pieces. Exposes OnMoveMade, OnAIMoveReady, OnGameOver events. |
AChessBoard |
Procedurally builds the 8×8 board (64 square + 64 hidden highlight meshes), a holographic grid overlay, an animated scan plane and neon edge lights. Owns coordinate ↔ square conversion, highlighting, actor snapping, and swappable per‑arena color themes. |
AChessPiece |
One piece. Uses a skeletal mesh (per‑type model + dynamic color tint), configurable via a FPieceMeshConfig override. |
AChessPlayerController |
Mouse hover/selection input. Resolves the board square under the cursor, highlights legal moves, submits moves, and schedules the AI reply. |
AChessCamera |
Fixed spring‑arm camera that frames the board (configurable arm length / pitch / yaw). |
UChessKidsGameInstance |
Set as the project Game Instance. Owns the arena registry and performs level travel via OpenMap(MapId). |
UChessMapRegistry |
UPrimaryDataAsset (authored as DA_MapRegistry) listing the selectable arenas (FChessMapEntry: id, display name, level, thumbnail, unlocked flag). |
AVegetationSpawner |
Procedurally scatters static‑mesh foliage — or an overridden actor class such as a hover‑car — around itself via ground line‑traces, excluding a radius around the board. Re‑randomizes every time the level starts. |
The Pulse chess engine source is embedded under Source/ChessKids/Engine/ (see
The chess AI).
| Path | Contents |
|---|---|
Maps/ |
Arenas and front‑end levels (see Maps). |
Blueprints/ |
BP_ChessBoard (configured board), BP_OrbitCar (cyberpunk hover‑car prop), BP_KingNPC (waving King NPC), ChessGameMode, WBP_GameOver. |
Blueprints/Models/ |
The six chess pieces as skeletal‑mesh sets (mesh + skeleton + physics asset + anim): pawn__2_, rook, knight, bishop, queen, king. |
Materials/Board/ |
Board surface & highlight materials: M_LightSquare, M_DarkSquare, M_HoloGrid, M_Selection, M_LegalMove, M_Hover, M_CityFloor. |
UI/ |
WBP_MainMenu, WBP_LevelSelect, M_BuildingSilhouette (skyline backdrop). |
Data/ |
DA_MapRegistry — the arena list consumed by the menu and OpenMap. |
CyberpunkIndustries/, Fab/ |
Third‑party city kit and marketplace dressing (buildings, flying/parked cars, kiosks, rooftops). |
NaturePack/ |
Foliage library used by AVegetationSpawner to populate L_Field. |
GeneratedTextures/ |
Generated texture outputs (AI sky/ground for L_Field; procedural holographic board textures). |
Sky/, Meshy_AI* |
HDRI sky lighting; the AI‑generated character mesh behind BP_KingNPC. |
The project embeds the Pulse chess engine by
Phokham Nonava (MIT‑licensed), adapted for UE5. Its source lives in
Source/ChessKids/Engine/ (plus the model/ subfolder) and is compiled into the game
module — there is no external dependency.
- What's inside: a 0x88 board
Positionwith bitboards and Zobrist hashing,MoveGenerator(legal moves incl. castling / en passant / promotion), a staticevaluation(material + mobility), and an iterative‑deepening alpha‑betaSearchwith quiescence and MVV‑LVA move ordering. The original engine's threading is replaced with Unreal'sFRunnableThread/FEvent. - Integration:
AChessManagerholds a privateFEngineImpl : pulse::Protocolthat owns thePositionandSearch. The search runs on a worker thread and reports its result throughsendBestMove; the callback marshals back to the game thread withAsyncTask(guarded by aTWeakObjectPtr) before applying the move. - Build flags:
ChessKids.Build.cscompiles the engine withbEnableExceptions,bUseRTTI,CppStandard = Cpp20,bUseUnity = false,PCHUsage = NoPCHs, and addsEngine/to the private include path so the engine headers resolve by bare name.
AChessManager::SetDifficulty(Level) maps a level to the engine's AISearchDepth:
| Level | Search depth | Behavior |
|---|---|---|
| 1 (Easy) | 1 | Shallow search, plus a 50% chance to play a purely random legal move |
| 2 (Medium) | 3 | Straight engine search |
| 3 (Hard) | 6 | Deeper engine search |
Play currently starts on Easy (BeginPlay → SetDifficulty(1)). AISearchDepth is also
an editable property (clamped 1–20).
| Map | Purpose |
|---|---|
MainMenu |
Front‑end entry level (startup & default map). Hosts WBP_MainMenu. |
LevelSelect |
Arena picker. Hosts WBP_LevelSelect, which reads DA_MapRegistry and calls OpenMap. |
L_Pawn |
Piece arena — cyan theme. |
L_Knight |
Piece arena — green theme. |
L_Bishop |
Piece arena — magenta theme (open colonnade). |
L_Rook |
Piece arena — amber theme (corner towers). |
L_Royalty |
Combined King + Queen arena — purple theme with a gold gateway. |
L_Field |
Open‑world nature/landscape level (World Partition, NaturePack foliage). Separate from the piece arenas. |
L_GameOverTest |
Scratch level for exercising the game‑over flow. |
Navigation: at startup the Game Instance loads DA_MapRegistry and seeds the unlocked
set. WBP_LevelSelect lists those entries; choosing one calls
UChessKidsGameInstance::OpenMap(MapId), which resolves the entry's level and travels to it.
- Create a level under
Content/Maps/(prefixL_). - Place one
BP_ChessBoard(orAChessBoard), oneAChessManager, and oneAChessCamera. References auto‑resolve at runtime, but you can set them explicitly. - Add an
FChessMapEntrytoDA_MapRegistry(MapId,DisplayName,Level). - If it should be packaged, add it to
MapsToCookinConfig/DefaultEngine.ini.
Per‑level knobs worth knowing (all on the placed actors, no code needed):
AChessManager—StartingFEN(a FEN string turns the arena into a lesson position, e.g. L_Pawn's pawns‑only battle; empty = standard chess),PlayerColorMode(ChooseAtStart / Random / Fixed),AISearchDepth, the audio slots (BackgroundMusic, move/capture/check/win sounds), and theWhite/BlackPieceMeshesmaps (mesh + material per piece type).AChessCamera—ArmLength,PitchAngle,Yaw,MinZoomArmFraction(how close the mouse‑wheel zoom can get). It auto‑finds the board and frames it.AChessBoard→ Holographic category —GridOverlayMaterial(M_HoloGrid),HolographicScanMaterial,NeonPulseMin/Max/Speed,ScanSpeed/Height. Set these to give the board the holo look; crankNeonPulseMin/Maxon brightly‑lit maps or the glow washes out.- To appear in the arcade picker, add a button in
ModeSelectWidget.cpp; to be a story chapter, extendUChessKidsGameInstance::MapForChapter().
The tutorials are C++‑scripted sequences, one class per lesson, all driven by the same tiny framework — this is where the "scripted events" live.
1. The manager class. Subclass ATutorialManager (see PawnTutorial,
RookTutorial, … KingTutorial, CheckmateTutorial as references, simplest
first). Your entire lesson is the override of:
virtual void SetupPhase(ETutorialPhase Phase) override;The phase ladder is the event script: Phase1 → Phase2 → Phase3 → Boss → Complete. Call AdvancePhase() when the player finishes a beat and
ResetPhase() to retry the current one (both auto‑cut any queued narration).
Inside a phase you compose the scene with the base‑class helpers:
SpawnPlayerPiece(File, Rank)— the piece being taught (TaughtPieceproperty)SpawnTargetAt / SpawnEnemyAt / SpawnWallAt (File, Rank)— collectibles, capturable rivals, and blockers;RemoveTargetAt/RemoveEnemyAtto clearIsMoveAllowed(...)— override to constrain which moves count for this lessonMovePlayerTo(File, Rank)— glide the piece (also bumpsMoveCount)
2. Guide narration. ShowGuideMessage(Text) shows (and speaks) one line;
ShowGuideSequence({...}) plays a timed multi‑line explanation
(GuideLineSeconds apart). Static lines are voiced automatically if they
exist in Tools/vo_manifest.json — see "Voice‑over pipeline" below. Lines built
with Printf (dynamic counters) display as text only.
3. The map. Create Content/Maps/L_Tutorial_<Name> containing a
TutorialBoard and one instance of your manager class, using the GM_Tutorial
game mode (its TutorialPlayerController spawns the tutorial HUD
automatically). Key properties on the placed manager: TaughtPiece,
GuideLineSeconds, NextLevelName (which lesson follows on "Continue"), and
TutorialCompletionIndex (save‑slot for the ✓ star and skin reward).
4. Wire it into the menu. Add the lesson's label and map name to the arrays
at the top of TutorialSelectWidget.cpp. Completion stars come from
UChessKidsSaveGame::CompletedTutorials; skin rewards route through
UChessKidsGameInstance::UnlockSkinForTutorial.
Editing existing scripted events is even easier: the entire script for each
lesson is plain TEXT("...") strings and spawn calls in its one .cpp file
(Source/ChessKids/Private/<Piece>Tutorial.cpp). Change the strings, rebuild,
done — but if a changed line was voiced, update its entry in
Tools/vo_manifest.json too (see below) so the audio matches.
All narration audio is generated, not recorded:
Tools/vo_manifest.json— one entry per line:id,character(Guide/AXIOM),text(what is spoken), optionalmatch(the exact in‑game string when it differs from the spoken text).python Tools/generate_vo.py— synthesizes missing clips toContent/Audio/VO/(needsELEVENLABS_API_KEYin.env; existing clips are skipped,--force/--only idto redo).python Tools/normalize_vo.py— levels all clips to a common loudness.python Tools/generate_vo.py --emit-cpp— regeneratesSource/.../VoiceLineMap.gen.h, the compiled text→clip table. Rebuild after.
At runtime FChessVoice matches every guide message against that table, queues
lines so they never talk over each other, ducks the music while speaking, and
drops stale narration at scene changes (phase advance, retry, undo, game over).
- Maps:
EditorStartupMap/GameDefaultMap=MainMenu;GlobalDefaultGameMode=ChessGameMode_C;GameInstanceClass=ChessKidsGameInstance. - Cooked maps:
MainMenu,LevelSelect,L_Field. - Rendering: Lumen GI + reflections, hardware ray tracing, Substrate, Virtual Shadow Maps, mesh distance fields; static lighting disabled. RHI = D3D12 / SM6.
- Input: Enhanced Input system.
- Python: remote execution enabled (
bRemoteExecution=True) for editor scripting. - Plugins:
ModelingToolsEditorMode(on),HDRIBackdrop(on),VisualStudioTools(off).
main is the integrated baseline. Branch off it, open a PR, and never push directly to
main. Always have Git LFS installed before cloning or pulling, or the binary
assets will be broken pointers.
git lfs install # one-time per machine
git clone https://github.com/LeineckerGames/ChessCadets.git
cd ChessCadets
git lfs pull # download the binary assetsgit checkout main
git pull origin main # local main = the integrated remote
git lfs pull
git checkout -b <yourname>-work # your branch off main
# ...commit your work...
git push -u origin <yourname>-workTo restart a stale branch from the current main (this discards that branch's old
commits):
git fetch origin
git checkout <yourbranch>
git reset --hard origin/main
git lfs pull
git push --force-with-lease origin <yourbranch>Prefer to leave the old branch untouched? Just make a fresh one off main instead:
git fetch origin
git checkout -b <yourname>-new origin/main- Pulse chess engine — © 2013‑2023 Phokham Nonava, MIT license
(
Source/ChessKids/Engine/). - CyberpunkIndustries, Fab packs, NaturePack, and the Meshy AI character are third‑party assets used for environment/character dressing under their respective licenses.
This project is released under the MIT License — see the LICENSE file for the full text.
MIT License
Copyright (c) 2026 Gabriel Parra and the ChessCadets contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The bundled Pulse chess engine (Source/ChessKids/Engine/) is
© 2013–2023 Phokham Nonava, also MIT-licensed; the third-party art/audio packs
listed above remain under their own licenses and are not covered by this
project's MIT grant.