little bug fix

This commit is contained in:
secminhr 2018-10-13 22:01:51 +08:00
parent 59b03a78c1
commit b13f52e4d5

View File

@ -14,7 +14,7 @@ def parse(seats,requirements):
name = {"f": "向前","b": "向後", "l": "向左", "r": "向右", "fr": "向右前", "br": "向右後", "fl": "向左前", "bl": "向左後"} name = {"f": "向前","b": "向後", "l": "向左", "r": "向右", "fr": "向右前", "br": "向右後", "fl": "向左前", "bl": "向左後"}
order = sorted([int(n) for n in requirements.keys()]) order = sorted([int(n) for n in requirements.keys()])
luckier = choice(order) luckier = choice(order)
print("幸運兒: " + luckier + "\n") print("幸運兒: " + str(luckier) + "\n")
order = order[order.index(luckier):] + order[:order.index(luckier)] order = order[order.index(luckier):] + order[:order.index(luckier)]
for req in order: for req in order: