0

Noughts and crosses using a string

Only using python and strings, lists etc. ,how do i make a noughts and crosses(no pics, JUST STRING)

31st Jan 2023, 10:23 AM
Josh Margulies
Josh Margulies - avatar
2 odpowiedzi
+ 9
Josh Margulies , your description seems a bit vague. can yoh give some more details? > to find any issue you have, we also need to see your code attempt > please store your code playground and link it here.
31st Jan 2023, 10:42 AM
Lothar
Lothar - avatar
0
Josh, You would start by creating a game board, via strings. It wont show great here in a post but something along the lines of: __|__|__ __|__|__ | | If you google ascii tictactoe board you will find some better examples. You would also need something to keep track of the spaces / positions (are you allowed to use an array?) You can then use the array to check if the position has been used on each turn etc. Hopefully that makes some sort of sense - I would start making the gameboard first. 👍✌️
31st Jan 2023, 11:51 AM
DavX
DavX - avatar