au.edu.mq.itec802.cardGame.blackjack
Class BlackjackRound

java.lang.Object
  extended by au.edu.mq.itec802.cardGame.blackjack.BlackjackRound
All Implemented Interfaces:
Round

public class BlackjackRound
extends java.lang.Object
implements Round

The Class BlackjackRound. TODO: Handling splits (now it is just temporary fix) if a game is split, nobody wins anything

Version:
$Id: BlackjackRound.java 22/03/2011 jumbo$
Author:
Tomas Krajca

Constructor Summary
BlackjackRound(java.util.ArrayList<BlackjackAbstractPlayer> players)
          Instantiates a new blackjack round.
 
Method Summary
 void play()
          Simulates playing a round of Blackjack
 java.lang.String toString()
          String representation of a round
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlackjackRound

public BlackjackRound(java.util.ArrayList<BlackjackAbstractPlayer> players)
Instantiates a new blackjack round.

Parameters:
players - the players
Method Detail

toString

public java.lang.String toString()
String representation of a round

Specified by:
toString in interface Round
Overrides:
toString in class java.lang.Object
Returns:
round as string
See Also:
Round.toString()

play

public void play()
Simulates playing a round of Blackjack

Specified by:
play in interface Round
See Also:
Round.play()