ca.ualberta.cs.poker.free.client
Class RandomPokerClient

java.lang.Object
  extended by ca.ualberta.cs.poker.free.client.PokerClient
      extended by ca.ualberta.cs.poker.free.client.RandomPokerClient
All Implemented Interfaces:
java.lang.Runnable

public class RandomPokerClient
extends PokerClient

Plays actions uniformly at random. Useful for debugging purposes.


Field Summary
 
Fields inherited from class ca.ualberta.cs.poker.free.client.PokerClient
currentGameStateString
 
Constructor Summary
RandomPokerClient()
          Creates a new instance of RandomPokerClient
 
Method Summary
 void handleStateChange()
          Chooses an action uniformly at random using an internal secure random number generator.
static void main(java.lang.String[] args)
           
 
Methods inherited from class ca.ualberta.cs.poker.free.client.PokerClient
close, connect, getClientID, isComplete, receiveMessage, run, sendAction, sendCall, sendFold, sendMessage, sendRaise, setVerbose, showVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomPokerClient

public RandomPokerClient()
Creates a new instance of RandomPokerClient

Method Detail

handleStateChange

public void handleStateChange()
                       throws java.io.IOException,
                              java.net.SocketException
Chooses an action uniformly at random using an internal secure random number generator.

Overrides:
handleStateChange in class PokerClient
Throws:
java.io.IOException
java.net.SocketException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Parameters:
args - the command line parameters (IP and port)
Throws:
java.lang.Exception