Skip to content

itictactoe No winner if win at the last turn #16

Closed

Description

@ceilinglight

Hi,

In chapter 22 Tic-Tac-Toe redux: An interactive version with type hints, the solution doesn't declare a winner if they win at the last turn. Here's the output from tiny_python_projects/22_itictactoe/solution1.py

-------------
| X | O | O |
-------------
| X | O | X |
-------------
| 7 | X | O |
-------------
Player X, what is your move? [q to quit]: 7
All right, we'll call it a draw.

The program should check for a draw after displaying a new board and finding a winner.

Activity

  1. kyclark commented on Dec 8, 2021

    @kyclark
    Owner

    You're right! I should do all the checks before getting the next move.

  2. added a commit that references this issue on Dec 8, 2021
  3. added a commit that references this issue on Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions