mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 20:21:00 +00:00
fixed sample.py ai
This commit is contained in:
parent
0bf9835285
commit
b7b5f58f84
@ -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…
x
Reference in New Issue
Block a user