halma-0.3.0.0: Library implementing Halma rules

Safe HaskellNone
LanguageHaskell2010

Game.Halma.Board.Draw

Synopsis

Documentation

drawBoard' :: (V b ~ V2, N b ~ Double, Renderable (Path V2 Double) b) => HalmaGrid -> ((Int, Int) -> Diagram b) -> QDiagram b V2 Double (Option (Last (Int, Int))) Source #

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

drawBoard :: (V b ~ V2, N b ~ Double, Renderable (Path V2 Double) b) => HalmaBoard -> (Team -> Colour Double) -> QDiagram b V2 Double (Option (Last (Int, Int))) Source #

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