Andwelcometoparteightofthe A I andStarcrafttwowithpythontutorialsyrizawherewe'renowapplyingdeeplearning.
Um, andreallyjustfindingoutthatwehavetobuilddatafirst s asweoftendointutorials.
So, uh, whatwe'regonnabedoingnowisjustkindofbuildingonthelasttutorialwherewe'retryingtogetthispicturetobe a goodrepresentationofwhat's goingoninthegamerightnow.
I hopeyou'rehungrybecausethere's gonnabesomepasta.
SoSo, um, inbadjokestogowithit.
So, um, sothisisfineforthenexus, butwewant a lotofbuildings.
Um, and I guessthegameisactuallyinthreedimensions, likeyou'vegotthiselevation.
Soyoureallyit's stressthatit's a to a point, andit's like a positionpointlikethen X y Soratherthanjustreturn X Y, yougottareturnthisbigoldthingforcoordinates.
Butthat's gonnabesuperuseful, especiallyifyouwanted, like, laterondowntheroad, tousesomesortofregressiontodeterminetheperfectplacementfor, like, a pylon, forexample, forprotoss, um, you'd wanttoknow, like, howdo I sendisthatperfectpositionorifyouwantto, likestructureyouryourattackinsomesortofformation.
You'regonnaneedcoordinates.
Sowow, thatwasreallycomplicated.
But I figureditout.
I pricedmenlike I don't even I evenknowProbablytwohoursorthreehourstryingtotryingtofigureoutwhythatwasn't working.
You'llbefighting a differentUm, yeah, there's a legitcommentunderthatonebecauseyoudon't knowtheenemy's, umyoucoulddoitlikebyenemieslikenameorsomethinglikethat, But I justwantedtokeepitassimpleaspossible.
Soifit's inexcesssupply, Depotwerehatchery.
Wewanttodrawitwithimportance.
So, umso, basically, whatwe'regonnasayis, if, umifit's notinoneofthese, likemainbasenames, willdrawitwiththesizeoffive.
Butifitis, we'rein a draughtas a 15.
Justlikewedrawourswith a 15.
Andthenwe'regonnaiteratedovertheknownenemyunits.
Sothatwasjusttheknownenemybuildings.
Andthenwegoovertheenemyunitsandagain, just a littleworkers.
Wewanttodrawthoseprettysmall.
Otherwise, we'regonnadrawthemlikesizethree.
Youcouldgointoitandyoucoulddrawallofthem.
Youknow, withtheperfectsizesandstuff.
I don't thinkit's gonnamatterAttheendoftheday, itmightmatterattheendoftheday, especiallyifyourenemyisproducing, likegoodunitsorreallybadunitslikeyoumightactuallywanttodig a littledeeperintothatagain.
I'm just I'm justtryingtoseeit.
Isthisevengonnaworkso, um, nottooworriedaboutit.
Andthenfinally, I wanttodrawtheobserverorcaps, um, sortofwaytoinformtheneuralnetworkwheretheobserveris.