From 3e177fc5f1064f6c6d755a5fd3607fbbd1b85a62 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 30 Nov 2009 21:54:12 +0000 Subject: display average fitness --- weasel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weasel.c b/weasel.c index b2fb6f4..4e41160 100644 --- a/weasel.c +++ b/weasel.c @@ -136,7 +136,7 @@ printpopulation(struct creature *best) int n; move(0, 0); - printw("%1.3f\t%s\n\n", 1.0, aim); + printw("%1.3f\t%s\n\n", average, aim); for (n = 0; n < population; n++) { printcreature(generation[n]); -- cgit v1.2.3