Package alice.tuprolog

Examples of alice.tuprolog.Prolog


  @Override
  public OpponentModel create(PlayerId actor) {
    PrologControl prolog = new PrologControl();
    PrologCafeModel model1 = new PrologCafeModel(prolog);

    Prolog engine = new Prolog();
    try {
      Theory theory1 = new Theory(
          this
          .getClass()
          .getClassLoader()
          .getResourceAsStream(
              "org/cspoker/client/bots/bot/search/opponentmodel/prolog/tuprolog/theory.pl"));
      engine.setTheory(theory1);
    } catch (IOException e1) {
      throw new IllegalStateException(e1);
    } catch (InvalidTheoryException e2) {
      throw new IllegalStateException(e2);
    }
View Full Code Here


@ThreadSafe
public class TuPrologModelFactory implements OpponentModel.Factory {

  @Override
  public OpponentModel create(PlayerId actor) {
    Prolog engine = new Prolog();
    try {
      Theory theory1 = new Theory(
          this
              .getClass()
              .getClassLoader()
              .getResourceAsStream(
                  "org/cspoker/client/bots/bot/search/opponentmodel/prolog/tuprolog/theory.pl"));
      engine.setTheory(theory1);
    } catch (IOException e1) {
      throw new IllegalStateException(e1);
    } catch (InvalidTheoryException e2) {
      throw new IllegalStateException(e2);
    }
View Full Code Here

TOP

Related Classes of alice.tuprolog.Prolog

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.