# README
go-chess-moves
The utility for generating all possible chess moves.
Features
- generating all possible moves:
- parameters:
- representing the board:
- as an associative array of pieces with their positions as keys;
- as a plain array of pieces with exact correspondence array indices to piece positions;
- as a set of integers corresponding to a particular combination of piece color and type, and where each bit corresponds to a particular piece position (so-called a bitboard);
- position;
- color that moves first.
- representing the board:
- parameters:
Installation
$ go install github.com/thewizardplusplus/go-chess-models/cmd/go-chess-moves@latest
Usage
$ go-chess-moves -h | -help | --help
$ go-chess-moves [options]
Options:
-h
,-help
,--help
— show the help message and exit;-storage {map|slice|bits}
— piece storage kind (default:slice
);-fen STRING
— board in Forsyth-Edwards Notation (default:rnbqk/ppppp/5/PPPPP/RNBQK
, i.e., Gardner's minichess);-color {black|white}
— color that moves first (default:white
).