View Source Buzzword.Bingo.Game.Checker (Buzzword Bingo Game v0.1.43)
Checks for a bingo!
Summary
Functions
Returns true
if all the squares of a line (row, column or diagonal)
containing the given phrase
have been marked by the given player
.
Returns false
otherwise or when the given phrase
cannot be found.
Functions
@spec bingo?( Buzzword.Bingo.Game.t(), Buzzword.Bingo.Square.phrase(), Buzzword.Bingo.Player.t() ) :: boolean()
Returns true
if all the squares of a line (row, column or diagonal)
containing the given phrase
have been marked by the given player
.
Returns false
otherwise or when the given phrase
cannot be found.