Files
project_drawing/shapes.py
tsmith37 e4e9bf01a8 finished simplifying the code - milestone 2 done
something i figured out is write to code so it works first then simplify it
2025-09-25 17:15:23 -04:00

33 lines
549 B
Python

from turtle import *
def board(side_length):
"Out line of the board"
sides = [side_length, side_length, side_length, side_length]
for sides in sides:
pensize(4)
forward(sides)
right(90)
def blue_coin(size):
begin_fill()
fillcolor('blue')
circle(size)
end_fill()
def red_coin(size):
begin_fill()
fillcolor('red')
circle(size)
end_fill()
def black_tile(size):
"black tile first"
repeat = [1, 2, 3, 4]
for repeat in repeat:
forward(size)
right(90)