mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 17:19:50 +00:00

...when deciding whether or not to use the full table or not. It will now almost always use the full table.
24 lines
619 B
Python
24 lines
619 B
Python
# $Id$
|
|
"""
|
|
Copyright (C) 2009 by Gregory Shikhman <cornmander@cornmander.com>
|
|
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License version 2
|
|
or at your option any later version.
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY.
|
|
|
|
See the COPYING file for more details.
|
|
"""
|
|
|
|
def count_eval(results):
|
|
total = 0
|
|
for result in results:
|
|
total += int(result[1])
|
|
return total
|
|
|
|
def simple_eval(results):
|
|
return len(results)
|
|
|