Feld-Output
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
## TO DO: AUSGABE VERBESSERN
|
||||
# TO DO: Benachritigung bei komplettem Schiff-Abschuss?
|
||||
|
||||
import random, time
|
||||
|
||||
@ -217,10 +217,10 @@ def feldWahl (spielerFeld):
|
||||
if not zweicheck (spielerFeld):
|
||||
print ("GRATULATION! Du hast gewonnen!!!")
|
||||
return 0
|
||||
print ("TREFFER!\nEs darf direkt ein neues Feld gewählt werden!")
|
||||
print ("["+chr(feld[0]+65)+str(feld[1]+1)+"]","TREFFER!\nEs darf direkt ein neues Feld gewählt werden!")
|
||||
feldWahl (spielerFeld)
|
||||
else:
|
||||
print ("Leider kein Treffer! Der Bot zieht nun...")
|
||||
print ("["+chr(feld[0]+65)+str(feld[1]+1)+"]","Leider kein Treffer! Der Bot zieht nun...")
|
||||
|
||||
|
||||
def Initialisiere ():
|
||||
@ -280,11 +280,11 @@ def botwahl (spielerFeld, diff):
|
||||
if not zweicheck (spielerFeld):
|
||||
print ("Schade! Der Bot hat gewonnen!")
|
||||
return 0
|
||||
print ("Der Bot hat getroffen! Er darf noch ein Feld wählen!")
|
||||
print ("["+chr(feld[0]+65)+str(feld[1]+1)+"]","Der Bot hat getroffen! Er darf noch ein Feld wählen!")
|
||||
time.sleep (1)
|
||||
botwahl (spielerFeld, diff/10.25)
|
||||
else:
|
||||
print ("Der Bot hat nicht getroffen! Du bist nun dran!")
|
||||
print ("["+chr(feld[0]+65)+str(feld[1]+1)+"]","Der Bot hat nicht getroffen! Du bist nun dran!")
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user