Minor changes

This commit is contained in:
Loic Guegan 2022-11-02 12:20:24 +01:00
parent 657578547f
commit b7e71e6690
3 changed files with 8196 additions and 2 deletions

View file

@ -140,7 +140,7 @@ class QTable:
# Perform learning
width,height=50,30
width,height=10,10
perf=0
last_state=None
last_action=None
@ -173,8 +173,9 @@ while True:
stuck=0
stuck_count+=1
action=qtable.get_random_action()
print("Stuck!")
print("Stuck! Try a random action...")
if stuck_count>2:
print("Can't get out of stuck. Abort!")
stuck_count=0
game.new_game()
break

8192
qtable.txt Normal file

File diff suppressed because it is too large Load diff

1
qtable.txt_generation Normal file
View file

@ -0,0 +1 @@
15000