chess icon indicating copy to clipboard operation
chess copied to clipboard

chess package for go

Results 36 chess issues
Sort by recently updated
recently updated
newest added

Instead of building a string of "0"s and "1"s and then converting it, newBitboard now uses bit arithmetic to convert a map to a uint64. This avoids memory allocation and...

**Current behaviour** When checking if the half move clock should be incremented: If there is a change in castling rights then the half move clock is set back to 0....

To reproduce: ``` func TestMoveHistory(t *testing.T) { game := chess.NewGame() game.MoveStr("e4") game.MoveStr("e5") game.Resign(chess.Black) history := game.MoveHistory() // Panics here if len(history) != 2 { t.Fatal("Didn't retrieve full history") } }...

Instead of building a string of `'0'`s and `'1'` characters and then converting it, `newBitboard` uses bit arithmetic to convert a map to a `uint64`. This avoids unnecessary memory allocation...

Hello! I am trying to generate a flipped SVG file for the black player. I write code like this: ```go board := pos.Board() if pos.Turn() == chess.Black { board =...

First of all, great work with the library! One issue (or a missing feature) I encountered: it does not handle Chess960 castling correctly. E.g. ``` package main import ( "fmt"...

References https://github.com/notnil/chess/issues/99 Hi notnil, big fan of your chess module. I ran into a use-case, as described in the above issue, and thought I'd submit a possible fix. I'm new...

I'm using the UCI library to explore certain chess positions. AFAICT, the `SearchResults` populator doesn't respect MultiPV search, and will give simply the most recent info-line in the `SearchResults().Info`. Would...

Support for comments isn't mentioned in the readme and doesn't have examples. This should be remedied.

The hashing method it's very expensive (because of the MD5 dependency) to use it in any cache or transposition table. I suggest to implement [Zobrist hashing](https://en.wikipedia.org/wiki/Zobrist_hashing) wich is the de-facto...