diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/browser/__init__.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/__init__.py similarity index 100% rename from tic-tac-toe-ai-python/source_code_final/frontends/browser/__init__.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/__init__.py diff --git a/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/__main__.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/__main__.py new file mode 100644 index 00000000..4e28416e --- /dev/null +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/__main__.py @@ -0,0 +1,3 @@ +from .cli import main + +main() diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/browser/cli.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/cli.py similarity index 95% rename from tic-tac-toe-ai-python/source_code_final/frontends/browser/cli.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/cli.py index c5b686a7..bb5f796d 100644 --- a/tic-tac-toe-ai-python/source_code_final/frontends/browser/cli.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/cli.py @@ -1,5 +1,3 @@ -# frontends/browser/cli.py - import http.server import socketserver import threading diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/browser/index.html b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/index.html similarity index 100% rename from tic-tac-toe-ai-python/source_code_final/frontends/browser/index.html rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/index.html diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/browser/players.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/players.py similarity index 94% rename from tic-tac-toe-ai-python/source_code_final/frontends/browser/players.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/players.py index 8036bd3d..ab2e60d1 100644 --- a/tic-tac-toe-ai-python/source_code_final/frontends/browser/players.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/players.py @@ -1,5 +1,3 @@ -# frontends/browser/players.py - from asyncio import Queue from tic_tac_toe.game.players_async import AsyncPlayer diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/browser/renderers.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/renderers.py similarity index 97% rename from tic-tac-toe-ai-python/source_code_final/frontends/browser/renderers.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/renderers.py index 6aa65819..4742d0db 100644 --- a/tic-tac-toe-ai-python/source_code_final/frontends/browser/renderers.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/renderers.py @@ -1,5 +1,3 @@ -# frontends/browser/renderers.py - from js import document from tic_tac_toe.game.renderers import Renderer from tic_tac_toe.logic.models import GameState diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/browser/script.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/script.py similarity index 98% rename from tic-tac-toe-ai-python/source_code_final/frontends/browser/script.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/script.py index e7241089..d5545ffb 100644 --- a/tic-tac-toe-ai-python/source_code_final/frontends/browser/script.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/script.py @@ -1,5 +1,3 @@ -# frontends/browser/script.py - from asyncio.queues import Queue from js import document diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/browser/tic_tac_toe-1.0.0-py3-none-any.whl b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/tic_tac_toe-1.0.0-py3-none-any.whl similarity index 100% rename from tic-tac-toe-ai-python/source_code_final/frontends/browser/tic_tac_toe-1.0.0-py3-none-any.whl rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/tic_tac_toe-1.0.0-py3-none-any.whl diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/console/__init__.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/console/__init__.py similarity index 100% rename from tic-tac-toe-ai-python/source_code_final/frontends/console/__init__.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/console/__init__.py diff --git a/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/console/__main__.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/console/__main__.py new file mode 100644 index 00000000..4e28416e --- /dev/null +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/console/__main__.py @@ -0,0 +1,3 @@ +from .cli import main + +main() diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/console/args.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/console/args.py similarity index 97% rename from tic-tac-toe-ai-python/source_code_final/frontends/console/args.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/console/args.py index b206e91b..20b79f9a 100644 --- a/tic-tac-toe-ai-python/source_code_final/frontends/console/args.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/console/args.py @@ -1,5 +1,3 @@ -# frontends/console/args.py - import argparse from typing import NamedTuple diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/console/cli.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/console/cli.py similarity index 90% rename from tic-tac-toe-ai-python/source_code_final/frontends/console/cli.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/console/cli.py index b4eb9ebe..b6c20f23 100644 --- a/tic-tac-toe-ai-python/source_code_final/frontends/console/cli.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/console/cli.py @@ -1,5 +1,3 @@ -# frontends/console/cli.py - from tic_tac_toe.game.engine import TicTacToe from .args import parse_args diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/console/players.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/console/players.py similarity index 96% rename from tic-tac-toe-ai-python/source_code_final/frontends/console/players.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/console/players.py index cc79d88e..27598634 100644 --- a/tic-tac-toe-ai-python/source_code_final/frontends/console/players.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/console/players.py @@ -1,5 +1,3 @@ -# frontends/console/players.py - import re from tic_tac_toe.game.players import Player diff --git a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/console/renderers.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/console/renderers.py similarity index 97% rename from tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/console/renderers.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/console/renderers.py index 451da621..9844289b 100644 --- a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/console/renderers.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/console/renderers.py @@ -1,5 +1,3 @@ -# frontends/console/renderers.py - import textwrap from typing import Iterable diff --git a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/play.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/play.py similarity index 94% rename from tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/play.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/play.py index 4ba22112..aea2dbe1 100644 --- a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/play.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/play.py @@ -1,12 +1,9 @@ -# frontends/play.py - +from console.players import ConsolePlayer +from console.renderers import ConsoleRenderer from tic_tac_toe.game.engine import TicTacToe from tic_tac_toe.game.players import RandomComputerPlayer from tic_tac_toe.logic.models import Mark -from console.players import ConsolePlayer -from console.renderers import ConsoleRenderer - player1 = ConsolePlayer(Mark("X")) player2 = RandomComputerPlayer(Mark("O")) diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/window/__init__.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/window/__init__.py similarity index 100% rename from tic-tac-toe-ai-python/source_code_final/frontends/window/__init__.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/window/__init__.py diff --git a/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/window/__main__.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/window/__main__.py new file mode 100644 index 00000000..4e28416e --- /dev/null +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/window/__main__.py @@ -0,0 +1,3 @@ +from .cli import main + +main() diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/window/cli.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/window/cli.py similarity index 96% rename from tic-tac-toe-ai-python/source_code_final/frontends/window/cli.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/window/cli.py index 3513cf37..f471014f 100644 --- a/tic-tac-toe-ai-python/source_code_final/frontends/window/cli.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/window/cli.py @@ -1,5 +1,3 @@ -# frontends/window/cli.py - from queue import Queue from threading import Thread diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/window/players.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/window/players.py similarity index 94% rename from tic-tac-toe-ai-python/source_code_final/frontends/window/players.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/window/players.py index a990d4cf..8f7f2d2a 100644 --- a/tic-tac-toe-ai-python/source_code_final/frontends/window/players.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/window/players.py @@ -1,5 +1,3 @@ -# frontends/window/players.py - from queue import Queue from tic_tac_toe.game.players import Player diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/window/renderers.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/window/renderers.py similarity index 97% rename from tic-tac-toe-ai-python/source_code_final/frontends/window/renderers.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/window/renderers.py index ef5c00ee..46a2aeea 100644 --- a/tic-tac-toe-ai-python/source_code_final/frontends/window/renderers.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/window/renderers.py @@ -1,5 +1,3 @@ -# frontends/window/renderers.py - import tkinter as tk from queue import Queue from tkinter import ttk diff --git a/tic-tac-toe-ai-python/source_code_final/library/LICENSE b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/LICENSE similarity index 100% rename from tic-tac-toe-ai-python/source_code_final/library/LICENSE rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/LICENSE diff --git a/tic-tac-toe-ai-python/source_code_final/library/MANIFEST.in b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/MANIFEST.in similarity index 100% rename from tic-tac-toe-ai-python/source_code_final/library/MANIFEST.in rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/MANIFEST.in diff --git a/tic-tac-toe-ai-python/source_code_final/library/README.md b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/README.md similarity index 100% rename from tic-tac-toe-ai-python/source_code_final/library/README.md rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/README.md diff --git a/tic-tac-toe-ai-python/source_code_final/library/pyproject.toml b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/pyproject.toml similarity index 100% rename from tic-tac-toe-ai-python/source_code_final/library/pyproject.toml rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/pyproject.toml diff --git a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/__init__.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/__init__.py similarity index 100% rename from tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/__init__.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/__init__.py diff --git a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/game/__init__.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/game/__init__.py similarity index 100% rename from tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/game/__init__.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/game/__init__.py diff --git a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/game/engine.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/game/engine.py similarity index 97% rename from tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/game/engine.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/game/engine.py index 75f4f5f3..f41a6a0c 100644 --- a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/game/engine.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/game/engine.py @@ -1,5 +1,3 @@ -# tic_tac_toe/game/engine.py - from dataclasses import dataclass from typing import Callable, TypeAlias diff --git a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/game/engine_async.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/game/engine_async.py similarity index 97% rename from tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/game/engine_async.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/game/engine_async.py index a74bfcd8..a0b067db 100644 --- a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/game/engine_async.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/game/engine_async.py @@ -1,5 +1,3 @@ -# tic_tac_toe/game/engine_async.py - from dataclasses import dataclass from tic_tac_toe.game.engine import ErrorHandler diff --git a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/game/players.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/game/players.py similarity index 98% rename from tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/game/players.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/game/players.py index 57b7c738..e09873df 100644 --- a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/game/players.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/game/players.py @@ -1,5 +1,3 @@ -# tic_tac_toe/game/players.py - import abc import time diff --git a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/game/players_async.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/game/players_async.py similarity index 98% rename from tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/game/players_async.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/game/players_async.py index 85a44350..fb28db24 100644 --- a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/game/players_async.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/game/players_async.py @@ -1,5 +1,3 @@ -# tic_tac_toe/game/players_async.py - import abc import asyncio diff --git a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/game/renderers.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/game/renderers.py similarity index 87% rename from tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/game/renderers.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/game/renderers.py index ffa0ceff..9ff562c1 100644 --- a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/game/renderers.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/game/renderers.py @@ -1,5 +1,3 @@ -# tic_tac_toe/game/renderers.py - import abc from tic_tac_toe.logic.models import GameState diff --git a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/logic/__init__.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/logic/__init__.py similarity index 100% rename from tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/logic/__init__.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/logic/__init__.py diff --git a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py similarity index 87% rename from tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py index 4aff0f76..1f7485c2 100644 --- a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py @@ -1,6 +1,3 @@ -# tic_tac_toe/logic/exceptions.py - - class InvalidGameState(Exception): """Raised when the game state is invalid.""" diff --git a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/logic/minimax.json b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/logic/minimax.json similarity index 100% rename from tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/logic/minimax.json rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/logic/minimax.json diff --git a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/logic/minimax.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/logic/minimax.py similarity index 99% rename from tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/logic/minimax.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/logic/minimax.py index 84b410fa..ce80c959 100644 --- a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/logic/minimax.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/logic/minimax.py @@ -1,5 +1,3 @@ -# tic_tac_toe/logic/minimax.py - import json from functools import cache, partial from importlib import resources diff --git a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/logic/models.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/logic/models.py similarity index 99% rename from tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/logic/models.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/logic/models.py index 47b0f746..0d4547c3 100644 --- a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/logic/models.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/logic/models.py @@ -1,5 +1,3 @@ -# tic_tac_toe/logic/models.py - import enum import random import re diff --git a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py similarity index 98% rename from tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py rename to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py index 8bead952..c91b61fd 100644 --- a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py +++ b/tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py @@ -1,5 +1,3 @@ -# tic_tac_toe/logic/validators.py - from __future__ import annotations from typing import TYPE_CHECKING diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/browser/__main__.py b/tic-tac-toe-ai-python/source_code_final/frontends/browser/__main__.py deleted file mode 100644 index 0f51c531..00000000 --- a/tic-tac-toe-ai-python/source_code_final/frontends/browser/__main__.py +++ /dev/null @@ -1,5 +0,0 @@ -# frontends/browser/__main__.py - -from .cli import main - -main() diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/console/__main__.py b/tic-tac-toe-ai-python/source_code_final/frontends/console/__main__.py deleted file mode 100644 index b0e00a0d..00000000 --- a/tic-tac-toe-ai-python/source_code_final/frontends/console/__main__.py +++ /dev/null @@ -1,5 +0,0 @@ -# frontends/console/__main__.py - -from .cli import main - -main() diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/window/__main__.py b/tic-tac-toe-ai-python/source_code_final/frontends/window/__main__.py deleted file mode 100644 index 5af92686..00000000 --- a/tic-tac-toe-ai-python/source_code_final/frontends/window/__main__.py +++ /dev/null @@ -1,5 +0,0 @@ -# frontends/window/__main__.py - -from .cli import main - -main() diff --git a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/console/__init__.py b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/console/__init__.py similarity index 100% rename from tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/console/__init__.py rename to tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/console/__init__.py diff --git a/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/console/__main__.py b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/console/__main__.py new file mode 100644 index 00000000..4e28416e --- /dev/null +++ b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/console/__main__.py @@ -0,0 +1,3 @@ +from .cli import main + +main() diff --git a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/console/args.py b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/console/args.py similarity index 97% rename from tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/console/args.py rename to tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/console/args.py index ac2a9436..0e2f6833 100644 --- a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/console/args.py +++ b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/console/args.py @@ -1,5 +1,3 @@ -# frontends/console/args.py - import argparse from typing import NamedTuple diff --git a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/console/cli.py b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/console/cli.py similarity index 90% rename from tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/console/cli.py rename to tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/console/cli.py index b4eb9ebe..b6c20f23 100644 --- a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/console/cli.py +++ b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/console/cli.py @@ -1,5 +1,3 @@ -# frontends/console/cli.py - from tic_tac_toe.game.engine import TicTacToe from .args import parse_args diff --git a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/console/players.py b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/console/players.py similarity index 96% rename from tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/console/players.py rename to tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/console/players.py index 615b2910..cd43f6aa 100644 --- a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/console/players.py +++ b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/console/players.py @@ -1,5 +1,3 @@ -# frontends/console/players.py - import re from tic_tac_toe.game.players import Player diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/console/renderers.py b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/console/renderers.py similarity index 97% rename from tic-tac-toe-ai-python/source_code_final/frontends/console/renderers.py rename to tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/console/renderers.py index 451da621..9844289b 100644 --- a/tic-tac-toe-ai-python/source_code_final/frontends/console/renderers.py +++ b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/console/renderers.py @@ -1,5 +1,3 @@ -# frontends/console/renderers.py - import textwrap from typing import Iterable diff --git a/tic-tac-toe-ai-python/source_code_final/frontends/play.py b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/play.py similarity index 94% rename from tic-tac-toe-ai-python/source_code_final/frontends/play.py rename to tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/play.py index 1cfdb055..aefb5c94 100644 --- a/tic-tac-toe-ai-python/source_code_final/frontends/play.py +++ b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/frontends/play.py @@ -1,11 +1,10 @@ -# frontends/play.py - -from console.players import ConsolePlayer -from console.renderers import ConsoleRenderer from tic_tac_toe.game.engine import TicTacToe from tic_tac_toe.game.players import RandomComputerPlayer from tic_tac_toe.logic.models import Mark +from console.players import ConsolePlayer +from console.renderers import ConsoleRenderer + player1 = ConsolePlayer(Mark("X")) player2 = RandomComputerPlayer(Mark("O")) diff --git a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/pyproject.toml b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/pyproject.toml similarity index 88% rename from tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/pyproject.toml rename to tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/pyproject.toml index 9ab6735f..89c6490c 100644 --- a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/pyproject.toml +++ b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/pyproject.toml @@ -1,5 +1,3 @@ -# pyproject.toml - [build-system] requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta" diff --git a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/__init__.py b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/__init__.py similarity index 100% rename from tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/__init__.py rename to tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/__init__.py diff --git a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/game/__init__.py b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/game/__init__.py similarity index 100% rename from tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/game/__init__.py rename to tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/game/__init__.py diff --git a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/game/engine.py b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/game/engine.py similarity index 97% rename from tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/game/engine.py rename to tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/game/engine.py index 75f4f5f3..f41a6a0c 100644 --- a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/game/engine.py +++ b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/game/engine.py @@ -1,5 +1,3 @@ -# tic_tac_toe/game/engine.py - from dataclasses import dataclass from typing import Callable, TypeAlias diff --git a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/game/players.py b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/game/players.py similarity index 98% rename from tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/game/players.py rename to tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/game/players.py index 3b5a3c72..cc4caa44 100644 --- a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/game/players.py +++ b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/game/players.py @@ -1,5 +1,3 @@ -# tic_tac_toe/game/players.py - import abc import time diff --git a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/game/renderers.py b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/game/renderers.py similarity index 87% rename from tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/game/renderers.py rename to tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/game/renderers.py index ffa0ceff..9ff562c1 100644 --- a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/game/renderers.py +++ b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/game/renderers.py @@ -1,5 +1,3 @@ -# tic_tac_toe/game/renderers.py - import abc from tic_tac_toe.logic.models import GameState diff --git a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/logic/__init__.py b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/logic/__init__.py similarity index 100% rename from tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/logic/__init__.py rename to tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/logic/__init__.py diff --git a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/logic/exceptions.py b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py similarity index 87% rename from tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/logic/exceptions.py rename to tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py index 4aff0f76..1f7485c2 100644 --- a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/logic/exceptions.py +++ b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py @@ -1,6 +1,3 @@ -# tic_tac_toe/logic/exceptions.py - - class InvalidGameState(Exception): """Raised when the game state is invalid.""" diff --git a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/logic/minimax.py b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/logic/minimax.py similarity index 95% rename from tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/logic/minimax.py rename to tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/logic/minimax.py index 5fa0c937..711e03d2 100644 --- a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/library/src/tic_tac_toe/logic/minimax.py +++ b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/logic/minimax.py @@ -1,5 +1,3 @@ -# tic_tac_toe/logic/minimax.py - from functools import partial from tic_tac_toe.logic.models import GameState, Mark, Move diff --git a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/logic/models.py b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/logic/models.py similarity index 99% rename from tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/logic/models.py rename to tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/logic/models.py index 47b0f746..0d4547c3 100644 --- a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/logic/models.py +++ b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/logic/models.py @@ -1,5 +1,3 @@ -# tic_tac_toe/logic/models.py - import enum import random import re diff --git a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/logic/validators.py b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py similarity index 98% rename from tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/logic/validators.py rename to tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py index 8bead952..c91b61fd 100644 --- a/tic-tac-toe-ai-python/source_code_final/library/src/tic_tac_toe/logic/validators.py +++ b/tic-tac-toe-ai-python/source_code_final/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py @@ -1,5 +1,3 @@ -# tic_tac_toe/logic/validators.py - from __future__ import annotations from typing import TYPE_CHECKING diff --git a/tic-tac-toe-ai-python/source_code_step_1/tic-tac-toe/library/pyproject.toml b/tic-tac-toe-ai-python/source_code_step_1/tic-tac-toe/library/pyproject.toml index 9ab6735f..89c6490c 100644 --- a/tic-tac-toe-ai-python/source_code_step_1/tic-tac-toe/library/pyproject.toml +++ b/tic-tac-toe-ai-python/source_code_step_1/tic-tac-toe/library/pyproject.toml @@ -1,5 +1,3 @@ -# pyproject.toml - [build-system] requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta" diff --git a/tic-tac-toe-ai-python/source_code_step_1/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py b/tic-tac-toe-ai-python/source_code_step_1/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py index 2a859ee7..efd15bfb 100644 --- a/tic-tac-toe-ai-python/source_code_step_1/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py +++ b/tic-tac-toe-ai-python/source_code_step_1/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py @@ -1,6 +1,3 @@ -# tic_tac_toe/logic/exceptions.py - - class InvalidGameState(Exception): """Raised when the game state is invalid.""" diff --git a/tic-tac-toe-ai-python/source_code_step_1/tic-tac-toe/library/src/tic_tac_toe/logic/models.py b/tic-tac-toe-ai-python/source_code_step_1/tic-tac-toe/library/src/tic_tac_toe/logic/models.py index 26c6a5ee..92f0a89a 100644 --- a/tic-tac-toe-ai-python/source_code_step_1/tic-tac-toe/library/src/tic_tac_toe/logic/models.py +++ b/tic-tac-toe-ai-python/source_code_step_1/tic-tac-toe/library/src/tic_tac_toe/logic/models.py @@ -1,5 +1,3 @@ -# tic_tac_toe/logic/models.py - import enum import re from dataclasses import dataclass diff --git a/tic-tac-toe-ai-python/source_code_step_1/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py b/tic-tac-toe-ai-python/source_code_step_1/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py index 2397814b..7f3cac5a 100644 --- a/tic-tac-toe-ai-python/source_code_step_1/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py +++ b/tic-tac-toe-ai-python/source_code_step_1/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py @@ -1,5 +1,3 @@ -# tic_tac_toe/logic/validators.py - from __future__ import annotations from typing import TYPE_CHECKING diff --git a/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/pyproject.toml b/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/pyproject.toml index 9ab6735f..89c6490c 100644 --- a/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/pyproject.toml +++ b/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/pyproject.toml @@ -1,5 +1,3 @@ -# pyproject.toml - [build-system] requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta" diff --git a/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/game/engine.py b/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/game/engine.py index 75f4f5f3..f41a6a0c 100644 --- a/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/game/engine.py +++ b/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/game/engine.py @@ -1,5 +1,3 @@ -# tic_tac_toe/game/engine.py - from dataclasses import dataclass from typing import Callable, TypeAlias diff --git a/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/game/players.py b/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/game/players.py index afd87ccf..de29c808 100644 --- a/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/game/players.py +++ b/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/game/players.py @@ -1,5 +1,3 @@ -# tic_tac_toe/game/players.py - import abc import random import time diff --git a/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/game/renderers.py b/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/game/renderers.py index ffa0ceff..9ff562c1 100644 --- a/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/game/renderers.py +++ b/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/game/renderers.py @@ -1,5 +1,3 @@ -# tic_tac_toe/game/renderers.py - import abc from tic_tac_toe.logic.models import GameState diff --git a/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py b/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py index 2a859ee7..efd15bfb 100644 --- a/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py +++ b/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py @@ -1,6 +1,3 @@ -# tic_tac_toe/logic/exceptions.py - - class InvalidGameState(Exception): """Raised when the game state is invalid.""" diff --git a/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/logic/models.py b/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/logic/models.py index 26c6a5ee..92f0a89a 100644 --- a/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/logic/models.py +++ b/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/logic/models.py @@ -1,5 +1,3 @@ -# tic_tac_toe/logic/models.py - import enum import re from dataclasses import dataclass diff --git a/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py b/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py index 8bead952..c91b61fd 100644 --- a/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py +++ b/tic-tac-toe-ai-python/source_code_step_2/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py @@ -1,5 +1,3 @@ -# tic_tac_toe/logic/validators.py - from __future__ import annotations from typing import TYPE_CHECKING diff --git a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/__main__.py b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/__main__.py index b0e00a0d..4e28416e 100644 --- a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/__main__.py +++ b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/__main__.py @@ -1,5 +1,3 @@ -# frontends/console/__main__.py - from .cli import main main() diff --git a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/args.py b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/args.py index 5bf24d05..b013f853 100644 --- a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/args.py +++ b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/args.py @@ -1,5 +1,3 @@ -# frontends/console/args.py - import argparse from typing import NamedTuple diff --git a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/cli.py b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/cli.py index b4eb9ebe..b6c20f23 100644 --- a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/cli.py +++ b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/cli.py @@ -1,5 +1,3 @@ -# frontends/console/cli.py - from tic_tac_toe.game.engine import TicTacToe from .args import parse_args diff --git a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/players.py b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/players.py index 615b2910..cd43f6aa 100644 --- a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/players.py +++ b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/players.py @@ -1,5 +1,3 @@ -# frontends/console/players.py - import re from tic_tac_toe.game.players import Player diff --git a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/renderers.py b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/renderers.py index 451da621..9844289b 100644 --- a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/renderers.py +++ b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/console/renderers.py @@ -1,5 +1,3 @@ -# frontends/console/renderers.py - import textwrap from typing import Iterable diff --git a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/play.py b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/play.py index 4ba22112..aefb5c94 100644 --- a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/play.py +++ b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/frontends/play.py @@ -1,5 +1,3 @@ -# frontends/play.py - from tic_tac_toe.game.engine import TicTacToe from tic_tac_toe.game.players import RandomComputerPlayer from tic_tac_toe.logic.models import Mark diff --git a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/pyproject.toml b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/pyproject.toml index 9ab6735f..89c6490c 100644 --- a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/pyproject.toml +++ b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/pyproject.toml @@ -1,5 +1,3 @@ -# pyproject.toml - [build-system] requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta" diff --git a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/game/engine.py b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/game/engine.py index 75f4f5f3..f41a6a0c 100644 --- a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/game/engine.py +++ b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/game/engine.py @@ -1,5 +1,3 @@ -# tic_tac_toe/game/engine.py - from dataclasses import dataclass from typing import Callable, TypeAlias diff --git a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/game/players.py b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/game/players.py index afd87ccf..de29c808 100644 --- a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/game/players.py +++ b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/game/players.py @@ -1,5 +1,3 @@ -# tic_tac_toe/game/players.py - import abc import random import time diff --git a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/game/renderers.py b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/game/renderers.py index ffa0ceff..9ff562c1 100644 --- a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/game/renderers.py +++ b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/game/renderers.py @@ -1,5 +1,3 @@ -# tic_tac_toe/game/renderers.py - import abc from tic_tac_toe.logic.models import GameState diff --git a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py index 2a859ee7..efd15bfb 100644 --- a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py +++ b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/logic/exceptions.py @@ -1,6 +1,3 @@ -# tic_tac_toe/logic/exceptions.py - - class InvalidGameState(Exception): """Raised when the game state is invalid.""" diff --git a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/logic/models.py b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/logic/models.py index 26c6a5ee..92f0a89a 100644 --- a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/logic/models.py +++ b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/logic/models.py @@ -1,5 +1,3 @@ -# tic_tac_toe/logic/models.py - import enum import re from dataclasses import dataclass diff --git a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py index 8bead952..c91b61fd 100644 --- a/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py +++ b/tic-tac-toe-ai-python/source_code_step_3/tic-tac-toe/library/src/tic_tac_toe/logic/validators.py @@ -1,5 +1,3 @@ -# tic_tac_toe/logic/validators.py - from __future__ import annotations from typing import TYPE_CHECKING diff --git a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/console/__main__.py b/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/console/__main__.py deleted file mode 100644 index b0e00a0d..00000000 --- a/tic-tac-toe-ai-python/source_code_step_4/tic-tac-toe/frontends/console/__main__.py +++ /dev/null @@ -1,5 +0,0 @@ -# frontends/console/__main__.py - -from .cli import main - -main()