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)
2 Answers
+ 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.
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.
đâïž