chess-puzzles

command module
v0.0.0-...-8f5f1bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Chess Puzzles Build Status Go Report Card

A terminal-based chess puzzles interface. The inspiration behind it comes from chess puzzles at chess.com. This project was made possible because of two awesome projects, termloop as the game engine and chess as the chess mechanics/engine.

alt puzzle solved

Getting started

A binary release is still on the making so until then you will need Golang to compile and run the source yourself. You can either install Golang or use Docker with the following command docker run -ti golang /bin/bash to have a proper environment to run this project.

These are the commands to get the source, compile and run:

go get -u github.com/vhugo/chess-puzzles.git
go install github.com/vhugo/chess-puzzles.git
$GOPATH/bin/chess-puzzles

Commands and key bindings

Commands

commands are keywords you can type that are liked to an action:

commands description
!new get a new puzzle, if available
!hint highlight the next move of the puzzle, but marks it as failed.
e2e3 move a piece from square e2 to e3 if the move is legal
e7e8q move a piece from square e7 to e8 and promote pawn to queen if the move is allowed

To move you pieces on the board use long algebraic notation in Universal Chess Interface (UCI) format.

key bindings

key bindings are keystrokes (shortcuts) linked to an action:

keys description
Ctrl+C exits the game
Ctrl+U clean the input area
Enter submit your command

To-do

  • Load puzzles from chess.com API
  • Add score to show success or failure
  • Add command to get new puzzle
  • Add command to reveal next move (this should mark the puzzle as failed)
  • Add a clock that resets when a new puzzle starts
  • Add help command to display list of commands
  • Load puzzles locally from JSON files
  • Setup release of binaries in this repo

License

Licensed under the MIT License.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址