Difference between revisions of "ChessCore"
GerdIsenberg (talk | contribs) |
GerdIsenberg (talk | contribs) |
||
Line 46: | Line 46: | ||
'''[[Engines|Up one level]]''' | '''[[Engines|Up one level]]''' | ||
[[Category:Open Source]] | [[Category:Open Source]] | ||
+ | [[Category:MIT]] | ||
[[Category:C sharp]] | [[Category:C sharp]] | ||
[[Category:WinBoard]] | [[Category:WinBoard]] |
Latest revision as of 21:35, 25 August 2020
ChessCore, (ChessBin.com)
a chess engine by Adam Berent, written in C#.
The ChessBin.com chess engine was documented in a blog format [2], and has been converted to cross-platform .NET Core dubbed ChessCore, open source under the MIT License published on GitHub [3].
The program makes heavy use of the .NET Core garbage collector (GC)
[4] and is mentioned as buggy in Ron Murawski's engine list [5].
Evaluate Moves
One sample of ChessCore's extensive GC usage demonstrates its Alpha-Beta search - at each node it generates and sorts all moves (or captures in quiescence) [6], and allocates the move list and each generated move on the heap [7]: For some reason, internal class position encapsulates the move.
private static List<Position> EvaluateMoves(Board examineBoard, byte depth) { ... List<Position> positions = new List<Position>(); for (byte x = 0; x < 64; x++) { ... Piece piece = examineBoard.Squares[x].Piece; ... continue if empty or opponent piece foreach (byte dst in piece.ValidMoves) { ... Position move = new Position(x, dst); ... Score move, killers, etc .. positions.Add(move); } } return positions; }
Publications
- Adam Berent (2014). Guide to Programming a Chess Engine. pdf
Forum Posts
- New Member Introduction by Adam Berent, CCC, July 19, 2009
- I need help, performance wall! by Adam Berent, CCC, October 21, 2009
- ChessBin 00.59 by Harun Taner, CCC, December 28, 2009
External Links
- GitHub - 3583Bytes/ChessCore: Chess Engine Implemented in .net core
- Chess – Adam Berent
- Computer Chess – Adam Berent
- Computer Chess Information and Resources (Wayback Machine)
References
- ↑ Computer Chess Information and Resources (Wayback Machine)
- ↑ Adam Berent (2014). Guide to Programming a Chess Engine. pdf
- ↑ GitHub - 3583Bytes/ChessCore: Chess Engine Implemented in .net core
- ↑ .NET Core - Garbage Collection - Tutorialspoint
- ↑ Chess Engine List from Ron Murawski's Computer-Chess Wiki
- ↑ Re: I need help, performance wall! by Sven Schüle, CCC, October 21, 2009
- ↑ ChessCore/Search.cs at master · 3583Bytes/ChessCore · GitHub - private static List<Position> EvaluateMoves(Board examineBoard, byte depth)