Skip to content

An UCI chessboard for use with USB joysticks or gamepads

Notifications You must be signed in to change notification settings

mdoege/pygameUCI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pygameUCI, an UCI chess frontend for use with USB joysticks or gamepads

screenshot

The default engine is /usr/bin/stockfish, but other UCI engine binaries can also be used.

Prerequisites

Needs python-chess, Pillow, pygame, and a USB joystick or gamepad to play. (Multiple controllers can also be used at the same time. Also, the pygameUCI window does not even need to have input focus.)

Usage

Move the circular blue cursor to the piece you want to move and press any joystick button to pick it up. The cursor turns red. Move it to a valid target square (the cursor will turn green over it) and press a joystick button again to complete the move. Computer moves are highlighted in purple on the board.

You will play as White by default; to play as Black just add black as a commandline parameter.

After every move the game is exported to game.pgn in the working directory.

License

GPL

Board and piece images are from Lichess.

About

An UCI chessboard for use with USB joysticks or gamepads

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages