starter-snake-haskell-1.1.0: A Haskell Battlesnake starter
Safe HaskellSafe-Inferred
LanguageHaskell2010

Battlesnake.Core.Coordinate

Synopsis

Documentation

data Coordinate Source #

Represents a coordinate on the game board.

Constructors

Coordinate 

Fields

  • coordX :: Integer

    The X coordinate (0 indexed, from left to right)

  • coordY :: Integer

    The Y coordinate (0 indexed, from bottom to top)

Instances

Instances details
FromJSON Coordinate Source # 
Instance details

Defined in Battlesnake.Core.Coordinate

ToJSON Coordinate Source # 
Instance details

Defined in Battlesnake.Core.Coordinate

Generic Coordinate Source # 
Instance details

Defined in Battlesnake.Core.Coordinate

Associated Types

type Rep Coordinate :: Type -> Type #

Show Coordinate Source # 
Instance details

Defined in Battlesnake.Core.Coordinate

Eq Coordinate Source # 
Instance details

Defined in Battlesnake.Core.Coordinate

type Rep Coordinate Source # 
Instance details

Defined in Battlesnake.Core.Coordinate

type Rep Coordinate = D1 ('MetaData "Coordinate" "Battlesnake.Core.Coordinate" "starter-snake-haskell-1.1.0-4gsnuWXkUAhIp7OqYh2CSY" 'False) (C1 ('MetaCons "Coordinate" 'PrefixI 'True) (S1 ('MetaSel ('Just "coordX") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: S1 ('MetaSel ('Just "coordY") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))