SoccerFun-0.3.2: Football simulation framework for teaching functional programming

SoccerFun.Field

Synopsis

Documentation

data Field Source

Constructors

Field 

Fields

fwidth :: FieldWidth

width of ball field (64m <=width <=75m)

flength :: FieldLength

height of ball field (100m<=height<=110m)

Instances

data Home Source

Constructors

West 
East 

Instances

goalPoles :: Field -> (Metre, Metre)Source

goalPoles yields the py coordinates of the north pole and south pole of the goal (note that north < south).