Package com.jacobpatterson.csci446.program1.core

Examples of com.jacobpatterson.csci446.program1.core.KonanePiece.ordinal()


      konaneGame.resetBoard();
      KonanePiece turn = KonanePiece.BLACK;
      while(!konaneGame.isOver())
      {
        startTime = System.nanoTime();
        Move move = agents[turn.ordinal()].computeMove();
        endTime   = System.nanoTime();
        timings.put(turn.ordinal(),
            timings.get(turn.ordinal()) + (endTime - startTime));
        turn = turn.oppositeTurn();
        konaneGame.makeMove(move);
View Full Code Here


      while(!konaneGame.isOver())
      {
        startTime = System.nanoTime();
        Move move = agents[turn.ordinal()].computeMove();
        endTime   = System.nanoTime();
        timings.put(turn.ordinal(),
            timings.get(turn.ordinal()) + (endTime - startTime));
        turn = turn.oppositeTurn();
        konaneGame.makeMove(move);
      }
      int winner = turn.oppositeTurn().ordinal();
View Full Code Here

      {
        startTime = System.nanoTime();
        Move move = agents[turn.ordinal()].computeMove();
        endTime   = System.nanoTime();
        timings.put(turn.ordinal(),
            timings.get(turn.ordinal()) + (endTime - startTime));
        turn = turn.oppositeTurn();
        konaneGame.makeMove(move);
      }
      int winner = turn.oppositeTurn().ordinal();
      scores.put(winner, scores.get(winner) + 1);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.