# on a 5 x 5 grid # define a draw(x,y) function that # returns the color at x,y # colors: 0 = black, 1 = white, 2 = red, 3 = green, 4 = blue def draw(x,y): if x * (x-4) == 0: return 4 if y * (y-4) == 0: return 4 if x == 2 and y == 2: return 4 return 2
submit and run