I've written a python script that takes command line arguments and plays one round of Tic Tac Toe.
running it looks like this...
run ttt o#xo##x## x 0 1
If the move is legal it then prints the new board layout and whether anyone won the game
I have to write tests for it using unittest. I dont know how to test the whole script with various command line parameters, all the examples I've seen seem to just test individual functions within the script.
Also the script uses argparse
to parse the parameters
Thanks!