Made it work, working sequence in main

This commit is contained in:
Lukas Wölfer
2019-04-09 05:43:12 +02:00
parent 8d5eeda2dc
commit 44f47f4691
3 changed files with 62 additions and 23 deletions

16
main.py
View File

@@ -39,8 +39,8 @@ def main() -> None:
]
t.field[3] = [
SpecialCard.Zhong,
SpecialCard.Bai,
SpecialCard.Zhong,
NumberCard(NumberCard.Suit.Red, 3),
NumberCard(NumberCard.Suit.Red, 7),
NumberCard(NumberCard.Suit.Green, 6),
@@ -79,7 +79,19 @@ def main() -> None:
]
print(t.check_correct())
print(*list(board_possibilities.possible_actions(t)), sep='\n')
step = list(board_possibilities.possible_actions(t))
print(*step, sep="\n")
sequence = [
0, 4, 0, 1, 0, 0, 8, 0, 1, 3, 0, 9, 0, 2, 0, 1, 1, 1, 2, 0, 2, 1, 6,
12, 0, 0, 1, 0, 0, 17, 11, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
]
for x in sequence:
print("Executing " + str(step[x]))
step[x].apply(t)
print(t.goal)
step = list(board_possibilities.possible_actions(t))
print(*enumerate(step), sep="\n")
print()
if __name__ == "__main__":