This commit is contained in:
parent
5367724a2b
commit
37cdcde4c5
|
|
@ -227,19 +227,6 @@ public class Simulator extends Thread {
|
|||
// 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
|
||||
|
|
@ -301,12 +288,12 @@ public class Simulator extends Thread {
|
|||
}
|
||||
|
||||
public boolean isLoopingBorder() {
|
||||
//TODO : complete method with proper return
|
||||
return false;
|
||||
//ODO-COMPLETE : complete method with proper return
|
||||
return loopingBorder;
|
||||
}
|
||||
|
||||
public void toggleLoopingBorder() {
|
||||
//TODO : complete method
|
||||
//ODO-COMPLETE : complete method
|
||||
loopingBorder = !loopingBorder;
|
||||
if (enableLogs) {
|
||||
if (loopingBorder) {
|
||||
|
|
|
|||
|
|
@ -393,6 +393,7 @@ public class MyInterface extends JFrame {
|
|||
}
|
||||
|
||||
public void update (int stepCount) {
|
||||
System.out.println("update called");
|
||||
this.setStepBanner("Step : "+ stepCount);
|
||||
this.repaint();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue