o
odinpkg.dev
packages / library / odin-chess

odin-chess

3d959f2library

No description provided.

No license ยท updated 5 months ago

Odin Chess

A chess game implemented in Odin with a graphical interface using raylib.

๐Ÿงฉ Requirements

This project requires Odin.

โ–ถ๏ธ Build & Run

Clone the repo:

git clone https://github.com/pf981/odin-chess.git
cd odin-chess

Run with Odin:

odin run . --debug

๐ŸŽฎ Controls

Action Input
Drag piece Mouse click + drag
Show attacked squares F1
Toggle debug info F2
Open console ` (backtick)
Load FEN In console: loadfen <FEN>
Reset game In console: new
Change FPS In console: fps <number>

๐Ÿ“ฆ Project Structure

odin-chess/
โ”œโ”€โ”€ assets/              # Textures & sound effects
โ”œโ”€โ”€ main.odin            # Game + UI loop
โ”œโ”€โ”€ game.odin            # Chess logic (moves, rules, FEN, history)
โ”œโ”€โ”€ todo.md              # Development notes
โ””โ”€โ”€ .gitignore

๐Ÿ“ธ Screenshots

Screenshot 2026-02-17 at 10 59 53โ€ฏpm