Drop links or images here to add them to the editor.

Gegeven het bord:

bord = [["X", "O", "-"],
        ["X", "O", "O"],
        ["-", "X", "-"]]

X is aan de beurt. Pas één element aan zodat X drie op een rij heeft (diagonaal, rij of kolom). Druk het bord daarna rij voor rij af.

Verwachte uitvoer:

XO-
XOO
XX-