Chess Game Mechanism : Legendary Edition


A perfect chess template to begin with, having all the chess game logic necessary to play an international tournament standard game, easy to use puzzle tool, tool that convert pgn to game.


by Freedom Developer


★★★★★ star rating
Price History +

Demo links

-WebGL

-Windows/Android (Same across all platform)



Check out the Documentation.



Features :

👍99.99% of code is written in C# and modifiable, the remaining 0.01% is a javascript plugin that can persist web browser gameplay data for continue game.


👍Chess logic code are implemented using bitboard architecture, the best way to implement chess, it enhance performance. Heavily commented code. Blitz mode friendly♜


👍Option to Initialize chess board with Forsyth-Edwards Notation(FEN) string, getting FEN string and ASCII string from board position. Convenient for puzzle implementation and debugging♜


👍Included EASY TO USE PUZZLE tool, start a new game or start by FEN & manually move pieces to desirable position. All historical moves are saved into xml file format which can then use for starting the puzzle level AUTOMATICALLY in game.


👍Complete EASY TO USE chess game logic available including castle move, en-passant move, pawn promotion(to knight/bishop/rook/queen), piece move rule, getting all pieces available moves on board, undo move, redo move, detecting if chess game is finished by checkmate or draw by seventyfivemoverule, fiftymoverule, five fold repetitions, three fold repetitions, insufficient materials, stalemate, extensible by opponent surrender, timeout, and draw by mutual agreement etc ♜


👍Calculate the change in position score after each move, as display on the black and white bar located on right side of Chess Game DEMO scene, letting user visualize the leading color on the board and how far ahead they are against their opponent, customizable ♜


👍 Customizable board based analysis AI, with decent calculation speed, its decision is determined purely based on current board position's rating calculated from each predefined and precoded conditional analysis, it also does threat analysis. ♜

Min Possible Elo : 50 ELO.

Max Possible Elo : 1100 ELO.


👍Heavily unit tested on all imaginable cases, should be free from bug on the chess logic ♜


👍Save & Load Game, can save game started with FEN string, retaining all the historical moves when loading a saved game, works on all platform ♜


👍Chess game logic and finishing rule are tailored to accomodate international chess tournament standard, as if there are an arbiter holding the match.


👍PGN thing

-PGN Player scene, capapble of rapidly load a txt file full of pgn matches into the game for match analysis, pgn buttons and scroll view are coded with extreme care to enhance great user experience while analysing a match.

-Allowing piece movement while analysing a pgn match, option to save all manually moved piece for later use.

-Extract match as pgn, capable of convert all moves into pgn format, conviniently prepared for exporting or copying a match as pgn format.






Year 2023 Roadmap (Work In Progress...):

Update to version 3.0 (Will promise the features update but not release date.)


(Done) Implement 2nd type of AI in C#, probably utilizing MTD(f) algorithm, possible ELO between 1000 to 1500.


(Done)Implement resign and draw feature, including analysis for AI where player can request to draw and resign when playing with AI, and AI will request to draw or resign to player when condition is met.


-Implement a way to edit board position in runtime and start the game with the immediate position as an alternative to start game with FEN string.


(Done)Making the chess game having an option to pick from the 2 types of AI for which best move is produced, meaning at any chess position during the game, the ELO of the move can be different instead of fixed ELO during the whole game.


-Improve puzzle where multiple valid moves within a board position is possible.

-The board on scene will display files(columns) and ranks(rows).


(Done)Display captured pieces on scene.


(Done)Flip board.


-Move suggestion by AI.


(Reworked on and added a lot more features, try on the demo to see what's not listed had changed, complete changes will annnounce on v3.0)Something I thought of while implementing the update...