So, uh, allright, sowearealsogoingtousenumbpie, butyoushouldalreadyhavethat.
Andthenwe'regoingtousethepythonimaginglibrary, and I wanttosaythatwouldbe a pipinstallpillow.
Thisis a virtualmachine, anditshouldbeclean.
Soifthat's notwhat I want, Umwe'llfindoutsoonenough.
Butwe'llgetrobbed.
Pillowandthentousepillowyouimportcapital P I L Sothatshouldbeeverythingweneed.
Let's goaheadandinpoorinpoor, numbpieasinpeaceorusenumbpieforthearraytypesofstufffromplwe'regoingtoimportimporthowtotypeimagewithcapital I importCVtoWe'regonnaimportMattplotlibdotpipelotas p l t.
We'regoingtoimportpickleon.
That's tosaveandloadourcuetable.
Thenwe'regoingtofromMatt.
Plotlivedwillimportstylejusttomakehergraphpretty.
Andwe'lldostylethatuse g pliant, uh, andthenfinallywillimporttime.
Uh, nowwhat I'm gonnadois I'm gonnagive a playerinequalsone.
We'regonnasavefood.
Andthesearejustnumbersforlabelsandkeys.
Ratherin a dictionary.
That's it.
Soplayerandfoodandandandenemyendthreeagain.
It's justdefinitions.
Forwhatnumber?
Thesethingsrepresentin a dictionary.
Sowe'rejust a d equalsandthenwe'regonnahaveoneColinsomething.
Um, biologist, Fillitin.
Sothesewillbethecolor.
Soto 55 1 75 0 Now, I'm actuallydefiningthesecolorsin B G orformat.
Uh, eventhough I'm reallytrue.
I wasreallytryingtouseRGB.
Sosideprojectisifanybodycantellmewhyisitbegr I don't thinkit's likethe I don't know.
Maybe I'llfigureitoutaswego, butthat's thatwas a problem I haven't solvedyetanyway, to 55 0 Sotheplayer B ismostlyblue, somegreen, soit's kindoflike a liteishblue.
Um, foodis B g.
Sofullgreen.
Sothefoodisgreen, andthentheenemywillbe 00 to 55.
Sobeautyaresomaximumaresoit'llbeveryred.
Cool.
So, um, youdon't likethat, huh?
Allright.
I'm surpriseditdoesn't surprise.
Isacceptingmyspacingoverofthedictionary.
I don't thinkthat's Pepe.
Maybeitis.
Mustitmustbe, ifit's acceptingit.
Uh, okay, sonowwhatweneedisweneed a blobclassbecause, really, alloftheseblobsaregonnahave a lotofthesameattributes.
Atleastthey'regoingtoneedtobeabletomove.
They'regoingtoneed a startinglocationliketheyneedtobeinitializedrandomly.
They'regonnaneedtobeabletobemoved.
Andthenlater, basicallyourobservation.
I didn't reallywanttousebecauseyouwouldhave, like, a hugeobservationspaceifyouneededtopass.
Whatisthelocationofeverybully?
I feltlikeit.
You'd havetobe.
Theproblemwouldbemuchmorecomplex, I guessifyoupassedthesethephysicallocationofeverything.