Interface PokerSquaresPlayer

All Known Implementing Classes:
FlushPokerSquaresPlayer, RandomPokerSquaresPlayer

public interface PokerSquaresPlayer

PokerSquaresPlayer - a simple player interface for PokerSquares. Author: Todd W. Neller


Method Summary
 int[] getPlay(Card card, long millisRemaining)
          getPlay - gets the current play position for a given card within the allotted number of milliseconds.
 void init()
          init - initializes the player before each game
 

Method Detail

init

void init()
init - initializes the player before each game


getPlay

int[] getPlay(Card card,
              long millisRemaining)
getPlay - gets the current play position for a given card within the allotted number of milliseconds. Each card passed to getPlay has been drawn from the game deck. Each legal returned move will be made for the player. Thus, this method contains all information necessary to maintain current game state for the player.

Parameters:
card - - card just drawn.
millisRemaining - - remaining milliseconds for play in the rest of the player's game.
Returns:
a 2D int array with the chosen (row, col) position for play of the given card.