Skip to content

abathur8bit/chessbox

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
img
 
 
 
 
 
 
 
 
 
 
 
 

Chessbox

Chessbox is the sum of three parts. The controller, the GUI, and the hardware.

The hardware is the chess board with the LEDs, reed switches, MCPs and all the wires. You can read about building that on the ChessLR blog.

Note that Chessbox is the new name for ChessLR.

The controller is the interface to the hardware. It turns the LEDs on/off and uses the reed switches to sense when a piece is on a square. This runs on the PI.

The GUI is the user interface that a person interacts with to start a new game, set the skill level etc. The GUI also connects to a chess engine.

Building

  • Use CLion, and open project at /workspace/chessbox.
  • Ensure that sdl is in workspace folder. /workspace/sdl/SDL2
  • Select the Controller GUI run configuration to run.

Running

You will need to start the controller in one terminal, then the GUI in another. You can run the GUI on the PI or if you can build and run in on your desktop.

Controller

$ cd ~/workspace/chessbox/controller
$ ./cbcontroller

GUI

Windows

From IDE, select the Controller GUI run configuration to run. It builds to

Linux

If you want the GUI to be full screen, use -f. -e ./stockfish points to the engine you want to use.

$ cd ~/workspace/chessbox/gui
$ ./cbgui -f -e ./stockfish

Once the controller and GUI are running, click the Connect button to connect the GUI to the controller. (This will be automatic in later versions.) Now you can play as white. The computer will sense when you pick up pieces, and when you put it down if the move is valid it will respond and indicate the move it wants you to make for it.

Reference

About

Source for Chess Box eboard controller and gui

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages