generated from mwc/lab_tic_tac_toe
I listed all the possible winning patterns for tic tac toe including the rows, columns, and diagonals. then the code goes through each pattern to check and see if they all have the same symbol. whatever the first position is, it checks to see if the second position is the same and then the third. If all 3 are the same symbol then we have true and if not then false. |
||
---|---|---|
nim | ||
strategy | ||
ttt | ||
.commit_template | ||
.gitignore | ||
notes.md | ||
play_nim.py | ||
play_ttt.py | ||
poetry.lock | ||
pyproject.toml |