Coder Social home page Coder Social logo

zchess's Introduction

zchess

logo

zchess is a terminal interface for chess written in Rust. You can use it to play chess either locally, or against other players via the Lichess API.

NOTE: This project is an early state of development, so expect bugs. Feel free to open issues and pull requests.

Features

  • Flexible interface configuration
  • Online games against real people via Lichess
  • Ships a lightweight binary

Getting started

Installation

Building from source:

git clone https://github.com/bloatoo/zchess
cd zchess
cargo install --path .

You must have the Rust toolchain installed. For an easy way to get Rust installed, visit this link.
The binary gets installed to ~/.cargo/bin/zch, so make sure ~/.cargo/bin is in PATH.

Requirements

Configuration

An example configuration file has been provided in the GitHub repository. Move/copy that file to ~/.config/zchess.toml and configure it to your liking.
For Lichess functionality, paste the API key you generated before to the token field in the configuration file. The rest of the configuration should be self-explanatory.

Default Keybinds

q | Quit
hjkl + arrow keys | Move the cursor during games
a | Abort the current game
r | Resign the current game
f | Flip board
enter | Select a menu item or a piece, or move the selected piece

Showcase

Local game

Preview

zchess's People

Contributors

bloatoo avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.