Examples of Move


Examples of engine.Scheme.Move

    newBoard.doFramesToStability();
    // Construct new scheme
    Scheme newScheme = new Scheme(originalScheme);
    ListIterator<Move> iterator = newScheme.moves.listIterator();
    while (iterator.hasNext()) {
      Move move = iterator.next();
      move.x += shiftx;
      move.y += shifty;
    }
    newScheme.setStart(newBoard);
    // Set as a new result
View Full Code Here

Examples of eu.semberal.migmang.logic.Move

            for (int i = 0; i < piecesTopLeftCorners.length; i++) {
                if (new Rectangle(topLeftBoardPosition.x + (i % 9) * squareWidth - pieceRadius,
                        topLeftBoardPosition.y + (i / 9) * squareWidth - pieceRadius,
                        2 * pieceRadius,
                        2 * pieceRadius).contains(e.getPoint())) {
                    moveContainer.setMove(new Move(movingPiece, i, movingColor));
                    movingColor = null;
                    movingPiece = -1;
                    return;
                }
            }
View Full Code Here

Examples of general.Move

  /**
   * Initialises game.
   */
  private void initGame() {
    board = new Board();
    move = new Move(board);
    game = new Game();
    createPlayers();
  }
View Full Code Here

Examples of it.stefanobertini.zebra.cpcl.linemode.Move

public class MoveTest {

    @Test
    public void testX0() {
        Move command = new Move(new Position(1, 0));

        CommandOutputBuilder output = new CommandOutputBuilder();
        output.printLn("! U1 XY 1 0");

        assertCommand(output, command);
View Full Code Here

Examples of koth.game.Move

        for (int n = 1; n < size;) {
            // Choose randomly a wall
            Vector wall = Algorithms.random(walls, random);
            walls.remove(wall);
            // Check if both endpoints already exist
            Move dir = wall.getX() % 2 == 0 ? Move.North : Move.East;
            Vector a = wall.add(dir), b = wall.sub(dir);
            boolean ac = tiles.contains(a), bc = tiles.contains(b);
            if (ac && bc && random.nextFloat() >= redundantProbability)
                continue;
            // Add tiles to maze
View Full Code Here

Examples of lmnd.model.command.Move

        File destanation = getDestanationPath();
        CommandData data = new CommandData();
        data.addItem(Keys.SOURCE_FILES, sources);
        data.addItem(Keys.DEST_DIR, destanation);
        // Create command.
        Move move = new Move();
        try {
            move.perform(data);
        } catch (Exception exception) {
            exception.printStackTrace();
        }
        // Refresh panels.
        CommandData refreshData = new CommandData();
View Full Code Here

Examples of mallemuck.model.command.Move

        File destanation = getDestanationPath();
        CommandData data = new CommandData();
        data.addItem(Keys.SOURCE_FILES, sources);
        data.addItem(Keys.DEST_DIR, destanation);
        // Create command.
        Move move = new Move();
        try {
            move.perform(data);
        } catch (Exception exception) {
            exception.printStackTrace();
        }
        // Refresh panels.
        CommandData refreshData = new CommandData();
View Full Code Here

Examples of models.Move

  }

  public static Result moveTo() {
    play.data.Form<Move> moveForm = play.data.Form.form(Move.class);

    Move move = moveForm.bindFromRequest().get();

    if (move.id == null) {
      return badRequest("Missing the 'id' parameter");
    }
View Full Code Here

Examples of net.sf.kpex.gui.builtins.Move

    register(new Destroy());
    register(new RemoveAll());
    register(new SetLayout());
    register(new Show());
    register(new Resize());
    register(new Move());

    register(new NewConsole());
    register(new GetApplet());
    register(new NewText());
    register(new GetText());
View Full Code Here

Examples of net.sourceforge.java_stratego.stratego.Move

   
  }
 
  public boolean validMove(Spot f, Spot t)
  {
    if (super.validAttack(new Move(getPiece(f), f, t)))
      return true;
   
    return super.validMove(new Move(getPiece(f), f, t));
  }
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.