Sfoglia il codice sorgente

Minor improvements

frans 8 anni fa
parent
commit
21a6133cb2
2 ha cambiato i file con 2 aggiunte e 20 eliminazioni
  1. 2 0
      pom.xml
  2. 0 20
      src/main/java/eu/tankernn/gameoflife/GameOfLife.java

+ 2 - 0
pom.xml

@@ -28,6 +28,7 @@
 	</dependencies>
 
 	<build>
+		<finalName>${project.artifactId}-${project.version}.${build.number}</finalName>
 		<plugins>
 			<plugin>
 				<artifactId>maven-assembly-plugin</artifactId>
@@ -76,6 +77,7 @@
 	<properties>
 		<maven.compiler.source>1.8</maven.compiler.source>
 		<maven.compiler.target>1.8</maven.compiler.target>
+		<build.number>SNAPSHOT</build.number>
 	</properties>
 	<description>A version of the classic Game of Life originally created by John Conway.</description>
 </project>

+ 0 - 20
src/main/java/eu/tankernn/gameoflife/GameOfLife.java

@@ -47,9 +47,6 @@ public class GameOfLife {
 	public static void main(String[] args) {
 		initDisplay();
 		cells = new boolean[gridWidth][gridHeight];
-		initCells();
-
-		dumpCells();
 
 		while (!Display.isCloseRequested()) {
 			long currentFrameTime = getCurrentTime();
@@ -183,23 +180,6 @@ public class GameOfLife {
 		return newcells;
 	}
 
-	private static void initCells() {
-		// cells[25][23] = true;
-		// cells[25][27] = true;
-		//
-		// cells[23][23] = true;
-		// cells[23][24] = true;
-		// cells[23][25] = true;
-		// cells[23][26] = true;
-		// cells[23][27] = true;
-		//
-		// cells[27][23] = true;
-		// cells[27][24] = true;
-		// cells[27][25] = true;
-		// cells[27][26] = true;
-		// cells[27][27] = true;
-	}
-
 	private static long getCurrentTime() {
 		return Sys.getTime() * 1000 / Sys.getTimerResolution();
 	}