Refactored

This commit is contained in:
2024-06-10 21:07:38 +02:00
parent 61d1ab0431
commit e47959373b
5 changed files with 65 additions and 61 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import numpy as np
from a_player import APlayer
from helper import to_state_string, create_empty_state, create_test_state
from state import to_state_string, create_empty_state, create_test_state
from state import get_potential_moves
@@ -17,7 +17,7 @@ class HumanPlayer(APlayer):
print(f"{self.name}, Du bist dran. Das Spielfeld sieht so aus:")
print(to_state_string(state, create_test_state()))
print(f"{self.name}, in welches Feld willst Du Dein \"{self.mark}\" setzen?")
print(f"{self.name}, in welches Feld willst Du das \"{self.mark}\" setzen?")
choice = input("Feldnummer: ")
if choice in "Qq":
@@ -35,7 +35,7 @@ class HumanPlayer(APlayer):
print("Versuche es nochmal")
continue
print("So soll es geschehen")
print(f"Okay, nächstes \"{self.mark}\" auf Feld {move+1}")
has_moved = True
break