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
local outfile="wdw-setup"
-- run the alliances setup
if list_empty(alliances) then
dofile("wdw-setup.lua")
else
-- run the turn (not yet)
read_orders(orders)
process_orders()
outfile = "" .. get_turn()
end
-- -- run the turn (not yet)
-- read_orders(orders)
-- process_orders()
-- siegbedingungen ausgeben
dofile("wdw-standings.lua")
@ -41,7 +44,7 @@ function run_wdw()
-- 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")
return -1
end

View File

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