r/programmingbydoing • u/breadkonqueso • Mar 15 '16
A question
im currently doing 63c. Nim and i figured i can do some stuff using for loops but for loops are explained in the next assignment.
So, can for loops be used? and if one knows another command(s) that could simplify or do it in another way, can they be used?
1
Upvotes
View all comments
Show parent comment
2
u/breadkonqueso Mar 31 '16 edited Mar 31 '16
http://i.imgur.com/YsY9FnC.png everytime i go to bed, before i go to sleep i think for a few minutes how i can solve a problem and after a few days of thinking i decided to give these ideas a go.
It worked kind of, instead of taking counters from the top, it was taking them from the bottom, so all i needed to do was reverse it right? That turned out to be more difficult than it seems, i ran into problem after problem but after 2 hours it now works properly.
**removed code, maybe someone will feel like me if they do it all on their own.
felt like i defeated a difficult boss at the end of a game lol