Updated structure of files and folders; edited Readme.md
This commit is contained in:
15
.classpath
15
.classpath
@@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-9">
|
||||
<attributes>
|
||||
<attribute name="module" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/5">
|
||||
<attributes>
|
||||
<attribute name="module" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +0,0 @@
|
||||
/bin/
|
||||
17
.project
17
.project
@@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>GameOfLife</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@@ -1,11 +0,0 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=9
|
||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||
org.eclipse.jdt.core.compiler.compliance=9
|
||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.source=9
|
||||
13
README.md
13
README.md
@@ -4,6 +4,15 @@ My Conway's Game of Life project
|
||||
***Not optimized yet***
|
||||
This is just a little side project to work on optimization skills and mess around with different patterns in Conway's Game of Life.
|
||||
|
||||
Download the project and open it in eclipse to edit, or to just run the project download and run the attached jar(***located in the included jar folder***).
|
||||
**To run**
|
||||
Step 1 : Download Repository
|
||||
Step 2 : Open Command Prompt and navigate to the folder you downloaded
|
||||
Step 3 : Enter the following commands
|
||||
cd gameoflife
|
||||
javac GameOfLife.java
|
||||
javac Main.java
|
||||
jar cmvf manifest.txt GameOfLife.jar ./*.java ./*.class
|
||||
java -jar GameOfLife.java
|
||||
Step 4 : *Have fun using my Conway's Game of Life Program!!!*
|
||||
|
||||
***Note: Requires Java 10***
|
||||
***Note: Requires Java 8***
|
||||
@@ -1,5 +1,3 @@
|
||||
package gameoflife;
|
||||
|
||||
import javafx.scene.shape.Rectangle;
|
||||
import javafx.event.EventHandler;
|
||||
import javafx.scene.input.MouseEvent;
|
||||
@@ -1,5 +1,3 @@
|
||||
package gameoflife;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.layout.GridPane;
|
||||
@@ -1,5 +1,3 @@
|
||||
package gameoflife;
|
||||
|
||||
public class GameOfLifeRules {
|
||||
public static void checkRules(Cell[][] cells, int x, int y) {
|
||||
int aliveNeighbors = 0;
|
||||
@@ -1,5 +1,3 @@
|
||||
package gameoflife;
|
||||
|
||||
import javafx.application.Application;
|
||||
|
||||
public class Main {
|
||||
1
gameoflife/manifest.mf
Normal file
1
gameoflife/manifest.mf
Normal file
@@ -0,0 +1 @@
|
||||
Main-Class: Main
|
||||
Binary file not shown.
Reference in New Issue
Block a user