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 160 forks source link

First time GitHub user #35

Closed BashirKad closed 3 years ago

BashirKad commented 3 years ago

Hi, I'm new to GitHub and while I don't have high hopes for the tournament I at least want to join along in the fun and see what I can code.

However, I'm really just not familiar with GitHub and how all the repositories work and Google can only get you so far. I've been able to download the entire repository into GitHub desktop, but I'm unable to clone or edit any of the pre-built strategies to create my own.

If anyone could help me out it'd be much appreciated! (Also I use Mac if that matters in the way I need to set it up)

jherndon8 commented 3 years ago

I'm not super familiar with Github desktop, but you can always the green "Code" button and hit "Download Zip" in the popup, then unzip it, and you have direct access to the files that way! You can open the unzipped folder in finder, open the files with your favorite text editor, and copy your favorite strategy with a new name, make some edits, and submit that file for the tournament!

If you want to run/test the code, you can right click the main repo folder named PrisonersDilemmaTournament (Command + up arrow takes you up a directory) and hit "New Terminal at folder." If you type "python3 prisonersDilemma.py" it should run it, and you can see all the results in results.txt! Definitely make sure your code runs here, it doesn't seem there's a way to edit a submission once you've attached your .py file.

Github is more useful if your trying to collaborate with others, so there's not too much of a need to keep track of this.

carykh commented 3 years ago

Hello BashirKad! I'm happy you're interested in joining in, and fortunately, I don't think you need any GitHub experience to enter! Since you've downloaded the entire repository already, you've actually finished all the hard work. At this point, just follow what @jherndon8 said, and you should be good to go! (I was going to type my own instructions, but jherndon pretty much nailed it so yay)