Package ee.ttu.cs.iti0011.iabb104231.k1.Board

Examples of ee.ttu.cs.iti0011.iabb104231.k1.Board.Board


    super(new BitSetStateStorage());
  }
 
  public Integer getNextMove(AbstractPlayer player)
  {
    Board board = getPlayer().getBoard();
    if (board.getOpenCells().size() == 0) return null;
   
    return getStorage().getNextMove(player);
  }
View Full Code Here


    super(new BitSetStateStorage());
  }
 
  public Integer getNextMove(AbstractPlayer player)
  {
    Board board = getPlayer().getBoard();
   
    if (board.getOpenCells().size() == 0) return null;
   
    ArrayList<Integer> emptyCells = board.getOpenCells();
   
    Collections.shuffle(emptyCells);
   
    return emptyCells.get(0);
  }
View Full Code Here

    return priority;
  }
 
  public Integer getNextMove(AbstractPlayer player)
  {
    Board board = getPlayer().getBoard();
   
    if (board.getOpenCells().size() == 0) return null;
   
    ArrayList<Integer> emptyCells = board.getOpenCells();

   
    for (Integer i : getPrioritezedMoves()) {
      if (emptyCells.contains(i)) {
        return i;
View Full Code Here

 
 
  public Board()
  {
//    this(new IntegersMapStateStorage());
    this(new BitSetStateStorage());
  }
View Full Code Here

{

  public SimpleAi()
  {
//    super(new SumOf15StateStorage());
    super(new BitSetStateStorage());
  }
View Full Code Here

public class Dumb extends AbstractAIStrategy
{
  public Dumb()
  {
    super(new BitSetStateStorage());
  }
View Full Code Here

*/
public class SmartAss extends AbstractAIStrategy
{
  public SmartAss()
  {
    super(new BitSetStateStorage());
  }
View Full Code Here

public class CertainCellsFirstStrategy extends AbstractAIStrategy
{
  public CertainCellsFirstStrategy()
  {
    super(new IntegersMapStateStorage());
  }
View Full Code Here

public class HumanPlayer extends AbstractPlayer
{

  public HumanPlayer() {
    super();
    setStorage(new IntegersMapStateStorage());
  }
View Full Code Here

 
  public HumanPlayer(String name)
  {
    super();
    setName(name);
    setStorage(new IntegersMapStateStorage());
  }
View Full Code Here

TOP

Related Classes of ee.ttu.cs.iti0011.iabb104231.k1.Board.Board

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.