Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added tictactoe/game/__init__.py
Empty file.
File renamed without changes.
6 changes: 4 additions & 2 deletions tictactoe/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
import time

import tictactoe as ttt
import game.tictactoe as ttt

# Initialize pygame
pygame.init()
Expand All @@ -13,6 +13,8 @@
# Colors
red = (255, 0, 0)
blue = (0, 0, 255)
black = (0, 0, 0)
white = (255, 255, 255)

# Create the game window
screen = pygame.display.set_mode(size)
Expand Down Expand Up @@ -42,7 +44,7 @@
# Draw title
title = largeFont.render("Play Tic-Tac-Toe", True, white)
titleRect = title.get_rect()
titleRect.center = ((width / 2), 50)
titleRect.center = (int(width / 2), 50)
screen.blit(title, titleRect)

# Draw "Play as X" button
Expand Down