carykh / PrisonersDilemmaTournament

Watch This Place's awesome video about iterated Prisoner's Dilemma for context! https://www.youtube.com/watch?v=BOvAbjfJ0x0
MIT License
205 stars 159 forks source link

Is Math library allowed? #65

Closed GoldenWither closed 3 years ago

GoldenWither commented 3 years ago

I know I'm only supposed to use python libraries of numpy and random, but is it okay to use math.floor() from the math library?

duckboycool commented 3 years ago

I think it should be fine (you could wait to see if #51 gets an official answer), but for a lot of math functions, including this case, you could also do them with numpy. numpy.floor

GoldenWither commented 3 years ago

Oh ok. I've never really used numpy so i didn't realize it had that function. Thanks for the help!