java.lang.ObjectWinWithMarkedCol
public class WinWithMarkedCol
Bingo Game:
A WinWithMarkedCol object checks for a complete column of marked cells
as a winning Bingo strategy.
| Constructor Summary | |
|---|---|
WinWithMarkedCol()
|
|
| 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 WinWithMarkedCol()
| 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