StringTokenizer sT = new StringTokenizer(algoName,":");
name = sT.nextToken();
if (sT.hasMoreTokens())
extra = sT.nextToken();
Log.write("Loading algorithm |" + name + "|");
DealingAlgorithm algo = (DealingAlgorithm)Class.forName(name).getConstructor(int.class).newInstance(hands);
algo.extraConfig(extra);
return algo;
} catch (Exception ex)
{
ex.printStackTrace();
return new DivAlgorithm(hands);