Package

Source Code of Test

import game.PlayingField;

/**
* @author Felix Neutatz
*
* CC BY 4.0
* http://creativecommons.org/licenses/by/4.0/
*
* Copyright (c) 2014 Felix Neutatz
*/

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);
   
   
    int[][] matrix = new int[][] {
            new int[] { 0, 0, 2, 0},
            new int[] { 0, 0, 2, 1},
            new int[] { 0, 0, 1, 2},
            new int[] { 0, 0, 0, 2}
        };

    PlayingField pf1 = new PlayingField(matrix);
    System.out.println(pf1);
    pf1.up();
    System.out.println(pf1);
  }
}
TOP

Related Classes of Test

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.