Android Open Source - abalone-android German Layout






From Project

Back to project page abalone-android.

License

The source code is released under:

GNU General Public License

If you think the Android project abalone-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/**
* Copyright (c) 2010-2011 Yaroslav Geryatovich, Alexander Yakushev
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*//*  ww w . j a  v  a 2 s . c o  m*/
package com.bytopia.abalone.mechanics;

/**
 * Class that constructs a "German daisy" Abalone starting position.
 * 
 * @author Bytopia
 */

public class GermanLayout extends Layout {

  /**
   * Array that contains the cell description for the starting position.
   */
  private byte[][] start = 
      { { N, N, N, N, N, N, N, N, N, N, N },
      { N, E, E, E, E, E, N, N, N, N, N }, // A
      { N, W, W, E, E, B, B, N, N, N, N }, // W
      { N, W, W, W, E, B, B, B, N, N, N }, // C
      { N, E, W, W, E, E, B, B, E, N, N }, // D
      { N, E, E, E, E, E, E, E, E, E, N }, // E
      { N, N, E, B, B, E, E, W, W, E, N }, // F
      { N, N, N, B, B, B, E, W, W, W, N }, // G
      { N, N, N, N, B, B, E, E, W, W, N }, // H
      { N, N, N, N, N, E, E, E, E, E, N }, // I
      { N, N, N, N, N, N, N, N, N, N, N } };

  /**
   * Returns the starting position.
   */
  public byte[][] getBlackStartField() {
    return start;
  }
  
}




Java Source Code List

com.bytopia.abalone.BoardRenderer.java
com.bytopia.abalone.BoardView.java
com.bytopia.abalone.GameActivity.java
com.bytopia.abalone.GameOptionsActivity.java
com.bytopia.abalone.LoseBallsView.java
com.bytopia.abalone.MainMenuActivity.java
com.bytopia.abalone.Options.java
com.bytopia.abalone.Scenario.java
com.bytopia.abalone.SelectLayoutActivity.java
com.bytopia.abalone.SplashAcitvity.java
com.bytopia.abalone.TutorialActivity.java
com.bytopia.abalone.TutorialBoardView.java
com.bytopia.abalone.mechanics.AiAnn.java
com.bytopia.abalone.mechanics.AiBeatrice.java
com.bytopia.abalone.mechanics.AiCharlotte.java
com.bytopia.abalone.mechanics.AiDeborah.java
com.bytopia.abalone.mechanics.ArtificialIntilligence.java
com.bytopia.abalone.mechanics.BelgianLayout.java
com.bytopia.abalone.mechanics.Board.java
com.bytopia.abalone.mechanics.Cell.java
com.bytopia.abalone.mechanics.ClassicLayout.java
com.bytopia.abalone.mechanics.ConsoleWatcher.java
com.bytopia.abalone.mechanics.Debug.java
com.bytopia.abalone.mechanics.Direction.java
com.bytopia.abalone.mechanics.EmptyLayout.java
com.bytopia.abalone.mechanics.Game.java
com.bytopia.abalone.mechanics.GermanLayout.java
com.bytopia.abalone.mechanics.Group.java
com.bytopia.abalone.mechanics.Layout.java
com.bytopia.abalone.mechanics.MoveType.java
com.bytopia.abalone.mechanics.Move.java
com.bytopia.abalone.mechanics.Player.java
com.bytopia.abalone.mechanics.Side.java
com.bytopia.abalone.mechanics.TestLayout.java
com.bytopia.abalone.mechanics.Watcher.java