# drawing.py # ---------- # By ____(you)___________ # # (Briefly describe what this program does.) from turtle import * from shapes import board from shapes import blue_coin from shapes import red_coin from shapes import black_tile def flyto(x, y): penup() goto(x, y) pendown() def black_row(times): sizes = [50,50,50,50] for size in sizes: begin_fill() fillcolor('black') black_tile(size) end_fill() penup() forward(size * 2) pendown() def blue_row(times): sizes = [50,50,50,50] for size in sizes: blue_coin(25) penup() forward(size * 2) def red_row(times): sizes = [50,50,50,50] for size in sizes: red_coin(25) penup() forward(size * 2) penup() goto(-300, 200) pendown() board(400) "first row" black_row(1) flyto(-300, 150) forward(50) "second row - white tile first" black_row(1) flyto(-300, 100) "third row - black tile first" black_row(1) flyto(-300, 50) forward(50) "fourth row - white tile first" black_row(1) flyto(-300, 0) "five row - black tile first" black_row(1) flyto(-300, -50) forward(50) "six row - white tile first" black_row(1) flyto(-300, -100) "seven row - black tile first" black_row(1) flyto(-300, -150) forward(50) "eight row - white tile first" sizes = [50,50,50,50] black_row(1) flyto(-300, -200) "blue checkers piece" forward(75) blue_row(1) flyto(-300, -150) forward(25) blue_row(1) flyto(-300, 100) "red checkers piece" forward(75) red_row(1) flyto(-300, 150) forward(25) red_row(1) flyto(-300, 200) input()