Skip to content

johneliades/unicode_chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unicode Chess ♔

A fully functional chess library and terminal game written in Python from scratch, featuring Unicode piece rendering, move generation, move validation, and FEN support.

Preview

Features

  • Interactive terminal game with coloured board, move highlighting, and captured-piece display
  • Full chess rules — castling, en passant, pawn promotion, 50-move rule, three-fold repetition, stalemate & checkmate detection
  • FEN import / export for loading and saving positions
  • Perft testing to verify move-generation correctness
  • Multi-undo support

Setup

git clone https://github.com/johneliades/unicode_chess.git
cd unicode_chess

Windows

python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt

Linux / macOS

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Play

python chess.py

In-game commands

Command Description
e2e4 Move piece from e2 to e4
undo Take back the last move
new Start a new game
perft N Run perft to depth N
help Show available commands
quit Exit

Author

Eliades JohnGitHub

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages