View Source Buzzword.Bingo.Game.Checker (Buzzword Bingo Game v0.1.37)
Checks for a bingo!
Link to this section 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.
Link to this section 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.