Go to file
Chris Mekelburg 2d470c3c89 Checkpoint 2
To decide on a winner, the game needs to check each of the winning
combinations on the board for either x symbols or o symbols and
then return the correct winner. To do this, I utilized 2 functions, a
check_winning_combo, which checked each index in each combination to see
if an x or o symbol was present, and then a check_winner which sent each
possible winning combination through check_winning combo. If the combo
did not have all x's or all o's (a mix of x's and o's and/or blanks)
the check_winning combo returned false otherwise it returned true.
2024-11-16 21:03:08 -05:00
nim Initial commit 2024-08-27 23:08:37 +00:00
strategy Initial commit 2024-08-27 23:08:37 +00:00
ttt Checkpoint 2 2024-11-16 21:03:08 -05:00
.commit_template Initial commit 2024-08-27 23:08:37 +00:00
.gitignore Initial commit 2024-08-27 23:08:37 +00:00
notes.md Checkpoint 2 2024-11-16 21:03:08 -05:00
play_nim.py Initial commit 2024-08-27 23:08:37 +00:00
play_ttt.py Initial commit 2024-08-27 23:08:37 +00:00
poetry.lock Initial commit 2024-08-27 23:08:37 +00:00
pyproject.toml Initial commit 2024-08-27 23:08:37 +00:00