halma-0.1.0.1: Library implementing Halma rules

Safe HaskellNone
LanguageHaskell2010

Game.Halma.Board.Draw

Synopsis

Documentation

drawBoard' :: Renderable (Path R2) b => HalmaGrid size -> ((Int, Int) -> Diagram b R2) -> QDiagram b R2 (Option (Last (Int, Int))) Source

Render the board using the helper function for drawing the fields. Supports querying for field positions.

drawBoard :: Renderable (Path R2) b => HalmaBoard size -> (Team -> Colour Double) -> QDiagram b R2 (Option (Last (Int, Int))) Source

Render the board using the given team colors. Supports querying for field positions.