Package algorithms

Examples of algorithms.DealingAlgorithm


      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);
View Full Code Here

TOP

Related Classes of algorithms.DealingAlgorithm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.