Comment

Comment by po

All of the squares in the field were labeled with "-1"

    $ python tictactoe.py 
    Enter H or T to decide if you will go first:h
    Enter 'X' or 'O' to select the shape that you want to use:x
    #### Initial Game Board State
    [-1, -1, -1]
    [-1, -1, -1]
    [-1, -1, -1]
    Enter the slot(location) where you want to place your shape:(available slots are :'0', '1', '2', '3', '4', '5', '6', '7', '8'):1
    you have chosen to place an 'X' at 1.
    #### Game Board State After Move By:player
    [-1, 'X', -1]
    [-1, -1, -1]
    [-1, -1, -1]
parent po 16 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton