国际象棋走棋验证库

发布于 2024-08-06 04:32:12 字数 1539 浏览 8 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

红玫瑰 2024-08-13 04:32:12

查看 C# 国际象棋游戏入门工具包。它是一个 C# 开源应用程序,完全符合您的要求,并且免费用于商业用途。

源代码的详细解释请参见:

http://www.chessbin.com

Have a look at the C# Chess Game Starter Kit. It is a C# Open Source Application that does exactly what you requested and it is free for commercial use.

For a detailed explanation of the source code see:

http://www.chessbin.com

心房的律动 2024-08-13 04:32:12

还有 sharpchess,它是开源的(根据 GNU GPL)并为 .Net v2 编写
它有一个核心引擎和一个 WinForm GUI。尽管它确实会下棋,但我相信您可能会去掉“游戏引擎”以留下用于模拟的外壳。

来自该网站的一些要点

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

国际象棋引擎功能

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

编程功能

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

There is also sharpchess which is open source (under GNU GPL) and written for .Net v2
It has a core engine as well as a WinForm GUI. Although it does play chess, I believe that you potentially strip out the "game engine" to leave a shell for simulation.

Some bullet points 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.

Chess engine features

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

Programming features

* A well-designed, and hopefully easy-to-understand, object-model that will enable other developers to quickly get involved in the project.
琴流音 2024-08-13 04:32:12

我在 github 上发布了我的chess-movement-validator

例子:

var board = Board.GetNewBoard();

board.SetPiece<Rook>( ChessColor.White, 'A', 1 );

var result = board.MovePiece( 'A', 1, 'A', 8 );

i published my chess-movement-validator on github.

Example:

var board = Board.GetNewBoard();

board.SetPiece<Rook>( ChessColor.White, 'A', 1 );

var result = board.MovePiece( 'A', 1, 'A', 8 );
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文