fixed sample.py ai
This commit is contained in:
parent
0bf9835285
commit
b7b5f58f84
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue