ca.ualberta.cs.poker.free.tournament
Class Tournament

java.lang.Object
  extended by ca.ualberta.cs.poker.free.tournament.Tournament

public class Tournament
extends java.lang.Object

Main Tournament class. Runs the tournament but uses a few assumptions: 1. For the remote launching of clients to work, you need to have ssh keys set to allow commands to be run on the target machines, without prompt. That means generating a keyset and loggin in at least once to avoid the prompt about accepting the key. 2. You also need to have directories with the necessary client files, called comp1, comp2, .... compN so the clients can be copied. 3. You would also need to have the proper user designated, as below, instead of the users and IPs I have been using. If these things are done, the tree upon launch will run the entire tournament, generate logfiles of the results and declare a winner.


Constructor Summary
Tournament()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static void printUsage()
           
static void runFourCompetitors()
           
static void runRoundRobin(int msPerHand, int numberOfCompetitors, int numberOfMatches)
           
 void runSingleElimination(int numberOfMatches)
           
static void runTestMatch()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tournament

public Tournament()
Method Detail

main

public static void main(java.lang.String[] args)

printUsage

public static void printUsage()

runSingleElimination

public void runSingleElimination(int numberOfMatches)

runTestMatch

public static void runTestMatch()

runFourCompetitors

public static void runFourCompetitors()

runRoundRobin

public static void runRoundRobin(int msPerHand,
                                 int numberOfCompetitors,
                                 int numberOfMatches)