Skip to content

A program that simulates an online chess game but with no engine.

Notifications You must be signed in to change notification settings

DruhanShah/Chess-local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Chess Programs

A chessboard program that allows entering moves and moving by clicking
Also a program that accepts FEN strings as input and outputs a chessboard onto console

FEN-to-Chessboard (C++)

The code in C++ uses stdin because of the lack of GUI, so the FEN is input as multiple strings instead of a single string with spaces.
Also, the conversion of character to number for the pieces is not very efficient as it is intended to allow upgrade to a system where the chessboard can be actually printed in a GUI instead of just console.
At the moment, the FEN input can only process the first two sections in a standard FEN. Processing for the later sections is a WIP.

What is FEN?

Forsyth-Edwards Notation is a method of representing a board position with some extra information in a single string.

Chess-Board (JavaScript)

A standard chessboard display that can move pieces with clicks. Drag-and-drop implementation is a WIP.
For the rules, the movement patterns of the pieces, checks, absolute pins, castling, pawn promotion and en passant have been added. Relative pins don't need to be implemented because they are still legal moves, you'll just lose a queen or so.
Added Checkmate, Stalemate, 50-move-rule and Threefold Repetition results. The game can finally end! Draw by Insufficient Material is a WIP. Also, you can flip the board to see the game from Black's perspective now.

To-Do List

  • Draw by Insufficient Material
  • Sounds for piece moves
  • Multiple themes for appearance
  • Drag-and-Drop moves
  • Complete FEN support for the C++ program (maybe even the JavaScript program)

About

A program that simulates an online chess game but with no engine.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published