Package ee.ttu.cs.iti0011.iabb104231.k1.Renderer.Console

Examples of ee.ttu.cs.iti0011.iabb104231.k1.Renderer.Console.LineSeparator


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

public class MockupPlayer extends AbstractPlayer
{
  public MockupPlayer()
  {
    super();
    setStorage(new IntegersMapStateStorage());
  }
View Full Code Here

      throw new PlayerCantMoveTwice(player);
    }
   
    // It's not your turn
    if (!player.equals(whoIsNext())) {
      throw new NotYourMove(player);
    }
   
    // It's already taken
    if (!getStorage().cellIsEmpty(cell)){
      throw new PositionIsAlreadyTaken();
View Full Code Here

    if (!getStorage().cellIsEmpty(cell)){
      throw new PositionIsAlreadyTaken();
    }
   
    if (cell < 1 || cell > 9){
      throw new NumberOutOfRange();
    }
   
      getStorage().registerPlayerMove(player, cell);
      for(Map.Entry<AbstractPlayer, AbstractStateStorage> entry: storages.entrySet())
      {
View Full Code Here

      return;
    }
   
    // player can't move twice
    if (lastMove != null && player.equals(lastMove)) {
      throw new PlayerCantMoveTwice(player);
    }
   
    // It's not your turn
    if (!player.equals(whoIsNext())) {
      throw new NotYourMove(player);
View Full Code Here

   * @throws PlayerNotSet
   */
  public void movesFirst(AbstractPlayer player) throws PlayerNotSet
  {
    if (!players.contains(player)) {
      throw new PlayerNotSet(player);
    }
  }
View Full Code Here

TOP

Related Classes of ee.ttu.cs.iti0011.iabb104231.k1.Renderer.Console.LineSeparator

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.