r/programmingbydoing • u/Herperty • Dec 27 '15
63. NIM
First of all, I'd like to say that these assignments are amazing! I've been finding them pretty fun to do, and so far, Nim has been very challenging . I guess i finally cracked the code, althought it feels very chunky.
While I've been doing these assignments, i've been reading on java as a language and i've been trying to wrap my head on getting things a bit more cleaner and leaner.
I've seen this post and from what I've been reading, I guess I could eventually use functions to, I guess, making displaying the piles a lot less clunky? I mean, is the code as messy as I think it is?
PS.: Making the piles into columns is so confusing I gave up :P.
View all comments
Show parent comment
3
u/holyteach Dec 28 '15
My CS-2 kids learn Object-Oriented Programming, which is a big part of the AP exam.