-footer

garrettsmith.blackjack
Interface Move


public interface Move

Represents a player's move, such as hitting or standing.

Since:
Blackjack v1.0
Version:
Blackjack v1.0
Author:
Garrett Smith, gsmith at northwestern dot edu

Field Summary
static Move DOUBLE
          Single instance of the move that represents doubling down.
static Move HIT
          Single instance of the move that represents hitting.
static Move SPLIT
          Single instance of the move that represents splitting the hand.
static Move STAND
          Single instance of the move that represents standing.
static Move SURRENDER
          Single instance of the move that represents surrendering.
 
Method Summary
 Hand execute(Hand hand, EventHandler handler, CardList dealerCards)
          Executes the move; should only be invoked internally by the framework.
 int value()
          The numeric value of the move used only internally for equality comparison.
 

Field Detail

HIT

static final Move HIT
Single instance of the move that represents hitting.


STAND

static final Move STAND
Single instance of the move that represents standing.


SURRENDER

static final Move SURRENDER
Single instance of the move that represents surrendering.


DOUBLE

static final Move DOUBLE
Single instance of the move that represents doubling down.


SPLIT

static final Move SPLIT
Single instance of the move that represents splitting the hand.

Method Detail

value

int value()
The numeric value of the move used only internally for equality comparison.


execute

Hand execute(Hand hand,
             EventHandler handler,
             CardList dealerCards)
Executes the move; should only be invoked internally by the framework.


-footer

Copyright 2001-5 Garrett Smith. Use is subject to license terms.