Giter Club home page Giter Club logo

console-chess's Introduction

Console-Chess

(Beware of horrible code) + (Might not work anymore(?))

This project is just a little challenge that I set for myself and is a proof of concept more than anything else as is really inconvenient to use and serves no real purpose.

Player Input

1: Specify the piece you want to move with its corresponding letter (King = K, Queen = Q, Rook = R, Bishop = B, Knight = N, Pawn = P).
2: Square the piece to move is currently on in the format: row (letters A-H) column (1-8). Ex.: C5
3: Square to move the piece on (for format see point 2)

A possible move could look something like: PE2E4, NB1C3 (Capitalization does not matter)

The format for castling is O-O for a short castle and O-O-O for a long castle (notice that these are capital o's instead of zeros)

Engine

This version uses the fastest version of Stockfish 12 as it's engine (may not be compatible with older cpu's). The depth is set to 14 by default.

Special Commands

dnb: Redraws the board
rtb: Rotates the board 180°
fen: Creates an fen of the current position and copies it to the clipboard
ext: Exits the current game and returns to the main menu

Known Bugs

Resizing the window will introduce weird color bugs in the board pattern which can be resolved by entering the dnb command.

Resizing the window while the board is being drawn results in even weirder background color bugs. In that case entering just the dnb command will not always work. You can solve that bug by selecting the miscolored background and entering the dnb command afterwards.

console-chess's People

Contributors

cxmu03 avatar

Stargazers

Sidh 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.