Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Board = Board {
- height :: Integer
- width :: Integer
- food :: [Coordinate]
- hazards :: [Coordinate]
- snakes :: [Battlesnake]
Documentation
The game board. See: https://docs.battlesnake.com/api/objects/board
Board | |
|
Instances
FromJSON Board Source # | |
ToJSON Board Source # | |
Defined in Battlesnake.Core.Board | |
Generic Board Source # | |
Show Board Source # | |
type Rep Board Source # | |
Defined in Battlesnake.Core.Board type Rep Board = D1 ('MetaData "Board" "Battlesnake.Core.Board" "starter-snake-haskell-1.1.0-4gsnuWXkUAhIp7OqYh2CSY" 'False) (C1 ('MetaCons "Board" 'PrefixI 'True) ((S1 ('MetaSel ('Just "height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: S1 ('MetaSel ('Just "width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)) :*: (S1 ('MetaSel ('Just "food") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Coordinate]) :*: (S1 ('MetaSel ('Just "hazards") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Coordinate]) :*: S1 ('MetaSel ('Just "snakes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Battlesnake]))))) |