Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
import pygame as pg pg.init() WIDTH = 600 HEIGHT = 600 LINE_COLOR = (186, 22, 12) BACKGROUND_COLOR = (18, 212, 199) screen = pg.display.set_mode((WIDTH, HEIGHT)) pg.display.set_caption("Tic Tac Toe") screen.fill(BACKGROUND_COLOR) def draw_lines_on_board(line_width): pg.draw.line(screen, LINE_COLOR, (200, 0), (200, 600), line_width) pg.draw.line(screen, LINE_COLOR, (400, 0), (400, 600), line_width) pg.draw.line(screen, LINE_COLOR, (0, 200), (600, 200), line_width) pg.draw.line(screen, LINE_COLOR, (0, 400), (600, 400), line_width) draw_lines_on_board(15) while True: for event in pg.event.get(): if event.type == pg.QUIT: exit(0) pg.display.update()
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)