Chess v1.0.0 Templates 4.5 Community
Submitted by user prashanna135; MIT; 2026-09-25
A complete, mobile-friendly chess game built in Godot 4 (GDScript).
Play against a real chess engine, against a friend on the same device, or
against someone on the same Wi-Fi network. Everything is laid out in code
with a single dark, gold-accented theme designed for phones.
Features
The game
Full 8x8 chess board with all six pieces.
Legal move generation — you can only make legal moves.
Castling and pawn promotion.
Check, checkmate, and stalemate detection.
Captured pieces displayed on each player's card as the game goes on.
Board coordinates (a–h / 1–8) drawn on the edge squares.
AI opponent
A proper chess engine, not a random mover. It uses:
Negamax search with alpha-beta pruning.
Iterative deepening with a time budget.
A transposition table to avoid re-searching the same positions.
Killer-move and history heuristics to order moves well.
Tapered piece-square tables (separate midgame and endgame values).
Three difficulty levels:
Level Search depth Randomness
Easy 2 ply high
Medium 3 ply slight
Hard 5 ply none
Pick your side (White / Black) or hit Random.
Game modes
Vs Bot — play the built-in engine.
Vs Player — two people, one device, taking turns.
Online (LAN P2P) — direct peer-to-peer play over your local network.
Host a game and share a short invite code.
Or use Quick Match, which finds a nearby opponent automatically.
Optional internet mode for play over the wider web (requires port
forwarding).
View files Download Submit an issue Recent Edits