java.lang.ObjectWinWithMarkedRow
public class WinWithMarkedRow
Bingo Game:
A WinWithMarkedRow object checks for a complete row of marked cells
as a winning Bingo strategy.
| Constructor Summary | |
|---|---|
WinWithMarkedRow()
Constructs an object of this class. |
|
| Method Summary | |
|---|---|
java.lang.String |
description()
Returns the description of this particular strategy. |
boolean |
equals(java.lang.Object obj)
|
boolean |
isWinner(BingoCard card)
Returns true if the given bingo card is a winner according
to the strategy of looking for a completely marked row. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WinWithMarkedRow()
| Method Detail |
|---|
public java.lang.String description()
description in interface WinningStrategypublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean isWinner(BingoCard card)
true if the given bingo card is a winner according
to the strategy of looking for a completely marked row.
isWinner in interface WinningStrategy