mirror of
https://github.com/Astatin3/Code.org-Final-Projects.git
synced 2026-06-09 00:18:02 -06:00
Add code
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import org.code.neighborhood.*;
|
||||
|
||||
public class NeighborhoodRunner {
|
||||
public static void main(String[] args) {
|
||||
|
||||
String I = "White";
|
||||
String O = "Black";
|
||||
|
||||
String[][] initState = new String[][] {
|
||||
new String[] {O,O,O,O,O,O,O,O},
|
||||
new String[] {O,I,I,O,O,O,O,O},
|
||||
new String[] {O,I,O,I,O,O,O,O},
|
||||
new String[] {O,I,O,O,O,O,O,O},
|
||||
new String[] {O,O,O,O,O,O,O,O},
|
||||
new String[] {O,O,O,O,O,I,I,O},
|
||||
new String[] {O,O,O,O,I,O,I,O},
|
||||
new String[] {O,O,O,O,O,O,I,O}};
|
||||
|
||||
ConwayRunner cw = new ConwayRunner();
|
||||
Renderer r = new Renderer();
|
||||
cw.run(r, initState);
|
||||
cw.run(r, initState);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user