Class WinWithMarkedCol

java.lang.Object
  extended by WinWithMarkedCol
All Implemented Interfaces:
WinningStrategy

public class WinWithMarkedCol
extends java.lang.Object
implements WinningStrategy

Bingo Game:
A WinWithMarkedCol object checks for a complete column of marked cells as a winning Bingo strategy.

Version:
Apr 20, 2009
Author:
Kelly Schultz and Alyce Brady

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

WinWithMarkedCol

public WinWithMarkedCol()
Method Detail

description

public java.lang.String description()
Returns the description of this particular strategy.

Specified by:
description in interface WinningStrategy

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

isWinner

public 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.

Specified by:
isWinner in interface WinningStrategy