Uh, we'regonnaneedtodraw a fewotherthingsonthescreenthatwe'llwe'llgettolater.
Okay, Sodrugraid, let's moveintothisone.
Now, whatweneedtodohereislikedraw a grid, whichisprettyeasytodo.
Sowhatwedoisweweregivenroseandsurface, soit's probably a goodideaif I actuallypassedintheroseandsurface.
So I'm justgonnaglobalthemheresothat I canreferencethem.
I thinkthisisgonnaworkwiththeglobalroseandwith, likethat.
Andherewealsoneedtomaketheseglobalbecause I don't passthem.
Andeverytime I draw a grid, we'regonnasaywithuh, andRoseAndthisheightvariableisactuallynotnecessarybecausewearejustgonnadraw a squarelike a squaresurfaceeverytime.
Sowecanjustmakethisthesame.
Wedon't needtwovariablesherewithinheight.
Doit.
We'regonnacontainthesamenumber.
Andwe'resoglobalwith.
AndRose, I gohere, drawgridgivenwithroseandsurface.
Whatwefirstneedtodowhenwe'redrawing a gridiswewanttofigureouthowbigeachsquareinthegridisgoingtobebecauseofwhatwe'regonnadoiswe'regonnajustdrawlinesgoingdownandacross, butweneedtofigureoutwheretodrawthoselines.
Sotodraw a lineinpiegame, allwehavetodoispregamedotdrawdon't wind.
Andtheargumentsthattakesis a surfaceweneed a coverinthiscaseisgonnabewhite.
Soyou 2 52 55 to 55.
Whitesweregonnadrawat X zerocomma X w and I'llgothroughthisinjustonesecondwhatthisdoes, and I'm gonnacopythisanddrawonemoreandthenexplainhowthisisgonnaworkprettywell.