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

Are there any limitations? Just checking. #59

Closed redtachyon2098 closed 3 years ago

redtachyon2098 commented 3 years ago

Hi, I am really excited about this. So to make sure I don't get disqualified and ruin the fun for myself, I want to ask a few questions that I couldn't find the answers to: 1) Are there any length limitations? For example, is there a limit on how many lines of code you can submit(Mine came out to be 290 0_0)? 2) Or any time limits(For example, your code can only run for up to 0.05 seconds)? 3) Should the submission only contain the strategy function? My code has more functions before it to make the coding easier(No external libraries, of course.) and it ran just fine, but I want to make sure. 4) Are there any more limitations that I couldn't think of? Thank you in advance, and I wish you the best of luck.(I'm NOT going to win, unfortunately.)

duckboycool commented 3 years ago

1) No specific limitation on length I'm pretty sure. (Unless it's large enough that you can't submit it to the google form, in which case I'd be terrified.) 2) See #20 3) Other functions are fine, just so long as it runs with the prisonersDilemma script.

carykh commented 3 years ago

No limitations to the length of the code file, as long as it's under 1 Mb, and is reasonably human-readable!

The time limit I've been telling people for runtime is "10 ms", meaning that the whole code (testing against the 9 example strats) should take no more than 10 ms.

It can contain helper functions, but it shouldn't load anything from other files. So, a second function called "multiply by 3" or something is allowed.

Best of luck, redtachyon!

nobody5050 commented 3 years ago

No limitations to the length of the code file, as long as it's under 1 Mb, and is reasonably human-readable!

The time limit I've been telling people for runtime is "10 ms", meaning that the whole code (testing against the 9 example strats) should take no more than 10 ms.

It can contain helper functions, but it shouldn't load anything from other files. So, a second function called "multiply by 3" or something is allowed.

Best of luck, redtachyon!

Woah, under 1mb? Why this restriction?

lunafoxx commented 3 years ago

No limitations to the length of the code file, as long as it's under 1 Mb, and is reasonably human-readable! The time limit I've been telling people for runtime is "10 ms", meaning that the whole code (testing against the 9 example strats) should take no more than 10 ms. It can contain helper functions, but it shouldn't load anything from other files. So, a second function called "multiply by 3" or something is allowed. Best of luck, redtachyon!

Woah, under 1mb? Why this restriction?

How much code are you writing that you need more than 1 MB? xD That's like 20,000 lines of code (rough guess)

nobody5050 commented 3 years ago

No limitations to the length of the code file, as long as it's under 1 Mb, and is reasonably human-readable! The time limit I've been telling people for runtime is "10 ms", meaning that the whole code (testing against the 9 example strats) should take no more than 10 ms. It can contain helper functions, but it shouldn't load anything from other files. So, a second function called "multiply by 3" or something is allowed. Best of luck, redtachyon!

Woah, under 1mb? Why this restriction?

How much code are you writing that you need more than 1 MB? xD That's like 20,000 lines of code (rough guess)

Well including large arrays could maybe increase file size arbitrarily without increasing code density

redtachyon2098 commented 3 years ago

Thanks for getting this straight! I hope this event ends up going smoothly.