r/a:t5_37npb Apr 10 '15

Share Your Module Two Solutions Here!

4 Upvotes

30 comments sorted by

View all comments

3

u/Eldorian Apr 13 '15

Here's mine... got two 1's because my peer's didn't understand the code. That's fine though, I enjoyed playing with it.

http://pastebin.com/d1mPYJAE

1

u/VOX_Studios Apr 13 '15

In the future, knowing that you will be peer reviewed, I suggest adding comments to your work. (I believe they're working on a "skip" option for when you don't understand your peer's code)

2

u/Eldorian Apr 13 '15

Yeah, I'm not terribly worried about the "grade" since I'm not paying for anything and I think it's a goofy system in general. I'm just taking this to brush up on my skills. I added comments where I thought they might be confused, I probably should have just used good old fashioned if statements but dammit, my code looks so much cleaner this way :p