aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-03-01 20:12:04 +0100
committertomsmeding <tom.smeding@gmail.com>2017-03-01 20:12:04 +0100
commitb0c5387e66f23199191feac71930db412762406d (patch)
tree9bc6cad0aaf686b0cfe75463b9866dcd8d49700e /main.cpp
parent8a3ba59193b0487fdffa4dc05abd4487b1ebf7fb (diff)
Print world during simulation
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 20eb1fe..36f5580 100644
--- a/main.cpp
+++ b/main.cpp
@@ -229,7 +229,11 @@ int main(int argc,char **argv){
}
}
+ world.print();
for(int i=0;i<C::autoTimeout;i++){
world.tick();
+ cin.get();
+ cout<<"\x1B[2J\x1B[H";
+ world.print();
}
}