After all, you claim to return a Mark, which hasn’t been fully defined yet. Note: Alternatively, you can postpone the evaluation of annotations until after they’ve been defined: Python # tic_tac_toe/logic/models.py from __future__ import annotations import enum class Mark(str, enum....
Understanding and representing the game Most of us have played tic-tac-toe at some point or another in our lives. It’s a deceptively simple game. Two players claim unique symbols (X or O) before taking alternating turns in placing that symbol in an available cell within a 3-by-3 grid....