Hs2048.Point
Description
Types and functions for manipulating points.
type Point = (Int, Int) Source #
Represents a point on a game board. The top-left corner is (0, 0) with x increasing left-to-right and y increasing top-to-bottom.
x :: Point -> Int Source #
Returns the x part of a point.
>>> x (1, 2) 1
>>>
x (1, 2)
y :: Point -> Int Source #
Returns the y part of a point.
>>> y (1, 2) 2
y (1, 2)