Package game

Examples of game.PlayingField.initialize()


*/

public class Test {
  public static void main(String[] args) {
    PlayingField pf = new PlayingField(4,4);
    pf.initialize(2);
    System.out.println(pf);
    pf.up();
    System.out.println(pf);
   
   
View Full Code Here


*/

public class Game2048 {
  public static void main(String[] args) throws IOException {
    PlayingField pf = new PlayingField(4,4);
    pf.initialize(2);
    System.out.println(pf);
   
    while(pf.movesAvailable()){
      System.out.print("Enter direction (u,d,l,r): ");
          // Read the char
View Full Code Here

public class Tree {
  public static void main(String[] args) throws IOException, CloneNotSupportedException {
   
    PlayingField pf = new PlayingField(4,4);
    pf.initialize(2);
   
    /*
    int[][] matrix = new int[][] {
            new int[] { 0, 0, 0, 2},
            new int[] { 2, 0, 0, 0},
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.