Refactored
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user