fixed sample.py ai

This commit is contained in:
Elias Pschernig 2008-01-26 15:59:32 +00:00
parent 0bf9835285
commit b7b5f58f84

View file

@ -2,6 +2,8 @@
"""This is a rather simple minded example of a python AI."""
import wesnoth, heapq, random
def pos(location):
"""Just a helper function for printing positions in debug messages."""
return "(%d, %d)" % (1 + location.x, 1 + location.y)