Chess Check Library

Is there a library that can be used to check chess movements and simulate games in .NET? It would be great if the library could understand movements in algebraic notation, as well as provide a simple API for creating moves. For example, game.Move ("E2", "E4"), etc. In the second case, the library should be able to generate algebraic notation for moves. I do not want him to make moves or play chess, etc., Just a library for checking games and modeling games. Any links?

+6
validation chess
source share
3 answers

Check out the C # Chess Game Starter Kit . This is an open source C # application that does exactly what you requested and is free for commercial use.

For a detailed explanation of the source code, see:

http://www.chessbin.com

+4
source share

There is also sharpchess , which is open source (under the GNU GPL) and written for .Net v2. It has a core engine, as well as a WinForm GUI. Despite the fact that he plays chess, I believe that you potentially deprive the "game engine" to leave a shell for modeling.

Some markers from the site

* Graphical chess board. * Helpful high-lighting of legal chess moves, when clicking on a piece. * Move history displayed. * Undo/Redo moves. * Load/Save chess games during play. * Replay your saved games. * Paste FEN positions from the clipboard. 

Features of the chess engine

 * WinBoard compatible. * 0x88 board representation. * Opening book containing over 1300 varied opening positions. 

Programming functions

 * A well-designed, and hopefully easy-to-understand, object-model that will enable other developers to quickly get involved in the project. 
+2
source share

i posted my chess validation mechanism on github .

Example:

 var board = Board.GetNewBoard(); board.SetPiece<Rook>( ChessColor.White, 'A', 1 ); var result = board.MovePiece( 'A', 1, 'A', 8 ); 
+1
source share

All Articles