This package provides UI components and game logic for standard chess play.
Here's an example of creating a ChessStore that would allow two people to play.
let white = Chess.HumanPlayer(side: .white) let black = Chess.HumanPlayer(side: . black) let game = Chess.Game(white, against: black) let store = ChessStore(game: game)
You might then use the store as the environment variable for a BoardView.
There is a lot to discover, you will find previews in the code, this can be helpful to get a visual guide.
Here's XCode showing the preview of
When a user taps a square we show the possible moves on the board.
TODO: This readme should have a better ending.