#Candy Crush - Level Generation! - www.101computing.net/candy-crush-level-generation import turtle from draw import * # 1. name your turtle pen = turtle.Turtle() # 3. Set up your turtle pen.tracer(0) pen.hideturtle() wn = turtle.Screen() wn.bgcolor(255,255,255) #Initialise the 9x9 grid ROWS = 9 COLS = 9 grid = [[1,2,3,4,6,2,5,1,3], [5,2,6,4,5,6,1,2,3], [4,1,1,3,3,6,2,4,5], [2,3,4,1,5,1,6,4,1], [5,5,3,2,1,4,3,2,2], [1,3,6,2,5,5,1,4,4], [6,1,6,3,4,6,6,3,6], [4,6,4,2,3,4,2,5,3], [4,5,1,1,3,5,2,4,6]] # >>> # >>> Step 1: Add some code here to use random values between 1 and 6 in each cell of the 9x9 grid # >>> # >>> # >>> Step 2: Add some code here make sure that the newly generated grid does not contain any blocks of 3 or more candies of the same type # >>> #Draw the grid on screen (using Python Turtle!) drawGrid(pen,grid)