diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-03-01 20:12:04 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-03-01 20:12:04 +0100 |
commit | b0c5387e66f23199191feac71930db412762406d (patch) | |
tree | 9bc6cad0aaf686b0cfe75463b9866dcd8d49700e /main.cpp | |
parent | 8a3ba59193b0487fdffa4dc05abd4487b1ebf7fb (diff) |
Print world during simulation
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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(); } } |