Coder Social home page Coder Social logo

fbuci's Introduction

fbUCI, an UCI chess frontend for the Linux framebuffer

screenshot

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

Prerequisites

Needs python-chess and Pillow

Framebuffer screen size is set to 1920x1080, so on Raspbian be sure to disable overscan in /boot/config.txt.

On some Linux distros other than Raspbian you may need to add yourself to the video group for permission to use the framebuffer.

Usage

Enter moves in UCI notation, e.g. e2e4, e1g1 (castling kingside), or a7a8q (pawn promotion to Queen).

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

Hit enter to redraw the board; enter r to rotate board; enter q to quit.

License

GPL

Board and piece images are from Lichess.

fbuci's People

Contributors

mdoege avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fbuci's Issues

board display

at last i managed to run your code .. i'm on Linux (Xubuntu 22.04) and i struggled with the 'framebuffer' /dev/fb0 .. it was not accessable .. it seems the command python3 ./fbuci.py must be executed as root, otherwise /dev/fb0 is unaccessable .. so i ran sudo python3 ./fbuci.py in an environment (which is recommended) an i get this output :

Your move? e2e4
  1. e4      c5
Your move? d2d4
  2. d4      cxd4
Your move? c2c3
  3. c3      dxc3
Your move? q
Goodbye!
(fb-env) roelof@roelof-HP-Elite-x2-1012-G2:~/Apps/fbUCI$ 

it seems stockfish is playing (i had to change the path to /usr/games/stockfish) but no board is displayed like your screenshot .. am i missing something or is this only a terminal application ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.