Class WinWithMarkedRow

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

public class WinWithMarkedRow
extends java.lang.Object
implements WinningStrategy

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

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

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

WinWithMarkedRow

public WinWithMarkedRow()
Constructs an object of this class.

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