Befehlsskript um Zug auszuführen.

This commit is contained in:
Enno Rehling 2003-12-17 23:11:52 +00:00
parent d0abe91d9c
commit 87548a276d
2 changed files with 8 additions and 4 deletions

View File

@ -24,13 +24,16 @@ function run_wdw()
end end
end end
local outfile="wdw-setup"
-- run the alliances setup -- run the alliances setup
if list_empty(alliances) then if list_empty(alliances) then
dofile("wdw-setup.lua") dofile("wdw-setup.lua")
else
-- run the turn (not yet)
read_orders(orders)
process_orders()
outfile = "" .. get_turn()
end end
-- -- run the turn (not yet)
-- read_orders(orders)
-- process_orders()
-- siegbedingungen ausgeben -- siegbedingungen ausgeben
dofile("wdw-standings.lua") dofile("wdw-standings.lua")
@ -41,7 +44,7 @@ function run_wdw()
-- write the resulting file to 'wdw-setup' -- write the resulting file to 'wdw-setup'
if write_game("wdw-setup")~=0 then if write_game(outfile)~=0 then
print("could not write game") print("could not write game")
return -1 return -1
end end

View File

@ -16,6 +16,7 @@ end
function get_position(aid) function get_position(aid)
-- return the position at which alliance 'aid' will start. -- return the position at which alliance 'aid' will start.
print("Alliance " .. aid)
local pos = positions[aid] local pos = positions[aid]
-- hack, because i have no coordinates yet: -- hack, because i have no coordinates yet: