fixed the first column (im stupid)
This commit is contained in:
parent
498c4c453b
commit
ddeeed525d
2
main.py
2
main.py
|
|
@ -108,7 +108,7 @@ while playing:
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
chosenColumn = getIntInput(f"{colourTile(player)} where do you want to drop your tile? 1-7.\n>>> ") - 1
|
chosenColumn = getIntInput(f"{colourTile(player)} where do you want to drop your tile? 1-7.\n>>> ") - 1
|
||||||
if chosenColumn <= 0:
|
if chosenColumn < 0:
|
||||||
raise IndexError
|
raise IndexError
|
||||||
tile = board[chosenColumn].index("O")
|
tile = board[chosenColumn].index("O")
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user