From af16b969b4c9e4ef48994da95f8cdb92ca94e107 Mon Sep 17 00:00:00 2001 From: George Lacey Date: Mon, 25 Sep 2017 19:03:03 +0100 Subject: [PATCH] Loop through generations --- src/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.py b/src/main.py index b2eab1a..a616ba9 100644 --- a/src/main.py +++ b/src/main.py @@ -6,3 +6,8 @@ args.add_argument("pop", help="Population size", type=int) args = args.parse_args() pop = Population(args.pop) + +while True: + print(pop) + input("Advance...") + pop.advance_generation()