This commit is contained in:
parent
5367724a2b
commit
37cdcde4c5
|
|
@ -227,19 +227,6 @@ public class Simulator extends Thread {
|
||||||
// set cell value to !currentCellValue
|
// set cell value to !currentCellValue
|
||||||
}
|
}
|
||||||
|
|
||||||
public void countAround(int x, int y) {
|
|
||||||
//enableLogs
|
|
||||||
//getCell
|
|
||||||
//if loopingBorder TRUE, border count as living.
|
|
||||||
if (loopingBorder == true){
|
|
||||||
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return lines of file representing
|
* @return lines of file representing
|
||||||
|
|
@ -301,12 +288,12 @@ public class Simulator extends Thread {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isLoopingBorder() {
|
public boolean isLoopingBorder() {
|
||||||
//TODO : complete method with proper return
|
//ODO-COMPLETE : complete method with proper return
|
||||||
return false;
|
return loopingBorder;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void toggleLoopingBorder() {
|
public void toggleLoopingBorder() {
|
||||||
//TODO : complete method
|
//ODO-COMPLETE : complete method
|
||||||
loopingBorder = !loopingBorder;
|
loopingBorder = !loopingBorder;
|
||||||
if (enableLogs) {
|
if (enableLogs) {
|
||||||
if (loopingBorder) {
|
if (loopingBorder) {
|
||||||
|
|
|
||||||
|
|
@ -393,6 +393,7 @@ public class MyInterface extends JFrame {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void update (int stepCount) {
|
public void update (int stepCount) {
|
||||||
|
System.out.println("update called");
|
||||||
this.setStepBanner("Step : "+ stepCount);
|
this.setStepBanner("Step : "+ stepCount);
|
||||||
this.repaint();
|
this.repaint();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue