haskellscrabble-1.2.2: A scrabble library capturing the core game logic of scrabble.
Wordify.Rules.Pos
Synopsis
data Pos Source #
Instances
Methods
(==) :: Pos -> Pos -> Bool #
(/=) :: Pos -> Pos -> Bool #
compare :: Pos -> Pos -> Ordering #
(<) :: Pos -> Pos -> Bool #
(<=) :: Pos -> Pos -> Bool #
(>) :: Pos -> Pos -> Bool #
(>=) :: Pos -> Pos -> Bool #
max :: Pos -> Pos -> Pos #
min :: Pos -> Pos -> Pos #
showsPrec :: Int -> Pos -> ShowS #
show :: Pos -> String #
showList :: [Pos] -> ShowS #
posAt :: (Int, Int) -> Maybe Pos Source #
above :: Pos -> Maybe Pos Source #
The position above the given position, if it exists.
below :: Pos -> Maybe Pos Source #
The position below the given position, if it exists.
left :: Pos -> Maybe Pos Source #
The position to the left of the given position, if it exists.
right :: Pos -> Maybe Pos Source #
The position to the right of the given position, if it exists.
xPos :: Pos -> Int Source #
yPos :: Pos -> Int Source #
gridValue :: Pos -> String Source #
starPos :: Pos Source #
The position of the star square
posMin :: Int Source #
posMax :: Int Source #