Merge branch 'master' of hongabar.org:robotgame

This commit is contained in:
Sakse Dalum
2012-08-08 19:00:57 +02:00
151 changed files with 2 additions and 1 deletions

View File

@@ -79,7 +79,7 @@ def generate_simple_playfield(width, height, nturns, nstones,
* the playfield is completable in nturns or less
* the playfield has at most nstones stones
Return (playfield : {(x, y): Direction | Blocker | None},
Return (playfield : {(x, y): Direction | Blocker},
steps : int)
where (x, y) : (int, int)
@@ -145,6 +145,7 @@ def generate_simple_playfield(width, height, nturns, nstones,
used_fields = _fields_from_turns(turns)
playfield = {}
del turns[-1]
for p, d in turns:
playfield[p] = d
emptys = set(itertools.product(range(width),