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

Battlesnake.Core.Game

Synopsis

Documentation

data Game Source #

Information about the current game configuration. See: https://docs.battlesnake.com/api/objects/game

Constructors

Game 

Fields

  • id :: Text

    The ID of the game.

  • ruleset :: Ruleset

    The ruleset used in the game.

  • timeout :: Integer

    The maximum time in milliseconds the server will wait for a response from your server.

Instances

Instances details
FromJSON Game Source # 
Instance details

Defined in Battlesnake.Core.Game

Generic Game Source # 
Instance details

Defined in Battlesnake.Core.Game

Associated Types

type Rep Game :: Type -> Type #

Methods

from :: Game -> Rep Game x #

to :: Rep Game x -> Game #

Show Game Source # 
Instance details

Defined in Battlesnake.Core.Game

Methods

showsPrec :: Int -> Game -> ShowS #

show :: Game -> String #

showList :: [Game] -> ShowS #

Eq Game Source # 
Instance details

Defined in Battlesnake.Core.Game

Methods

(==) :: Game -> Game -> Bool #

(/=) :: Game -> Game -> Bool #

type Rep Game Source # 
Instance details

Defined in Battlesnake.Core.Game

type Rep Game = D1 ('MetaData "Game" "Battlesnake.Core.Game" "starter-snake-haskell-1.0.0-8lStfSlItQd2VBGXWcsnkm" 'False) (C1 ('MetaCons "Game" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "ruleset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Ruleset) :*: S1 ('MetaSel ('Just "timeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer))))