aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2009-11-30 21:54:12 +0000
committerDimitri Sokolyuk <demon@dim13.org>2009-11-30 21:54:12 +0000
commit3e177fc5f1064f6c6d755a5fd3607fbbd1b85a62 (patch)
tree42ba1e237c983e3941d0c5f8d7081fe8876ffec3
parent97b25404cff3d3df2984d19191af1fb53b2a7960 (diff)
display average fitness
-rw-r--r--weasel.c2
1 files changed, 1 insertions, 1 deletions
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]);