Skip to content

Commit 043e2a5

Browse files
authored
Merge pull request #314 from realpython/tic-tac-toe-ai-python
Tic tac toe ai python
2 parents 3346443 + 878410c commit 043e2a5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+17
-146
lines changed

tic-tac-toe-ai-python/source_code_final/frontends/browser/__init__.py renamed to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/__init__.py

File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from .cli import main
2+
3+
main()

tic-tac-toe-ai-python/source_code_final/frontends/browser/cli.py renamed to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/cli.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# frontends/browser/cli.py
2-
31
import http.server
42
import socketserver
53
import threading

tic-tac-toe-ai-python/source_code_final/frontends/browser/index.html renamed to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/index.html

File renamed without changes.

tic-tac-toe-ai-python/source_code_final/frontends/browser/players.py renamed to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/players.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# frontends/browser/players.py
2-
31
from asyncio import Queue
42

53
from tic_tac_toe.game.players_async import AsyncPlayer

tic-tac-toe-ai-python/source_code_final/frontends/browser/renderers.py renamed to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/renderers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# frontends/browser/renderers.py
2-
31
from js import document
42
from tic_tac_toe.game.renderers import Renderer
53
from tic_tac_toe.logic.models import GameState

tic-tac-toe-ai-python/source_code_final/frontends/browser/script.py renamed to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/script.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# frontends/browser/script.py
2-
31
from asyncio.queues import Queue
42

53
from js import document

tic-tac-toe-ai-python/source_code_final/frontends/browser/tic_tac_toe-1.0.0-py3-none-any.whl renamed to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/browser/tic_tac_toe-1.0.0-py3-none-any.whl

File renamed without changes.

tic-tac-toe-ai-python/source_code_final/frontends/console/__init__.py renamed to tic-tac-toe-ai-python/source_code_bonus/tic-tac-toe/frontends/console/__init__.py

File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from .cli import main
2+
3+
main()

0 commit comments

Comments
 (0)