public interface WinningStrategy
Bingo Game:
A WinningStrategy class implements a way to check for a particular winning
strategy for winning at Bingo (such as a complete row of marked cells, a
complete column of marked cells, a complete diagonal of marked cells, etc.).
Method Summary | |
---|---|
java.lang.String |
description()
Returns the description of a particular strategy. |
boolean |
isWinner(BingoCard card)
Returns true if the given bingo card is a winner according
to a particular strategy. |
Method Detail |
---|
java.lang.String description()
boolean isWinner(BingoCard card)
true
if the given bingo card is a winner according
to a particular strategy.