06-10-2024, 03:14 AM
(06-09-2024, 03:43 PM)marbac74 Wrote:I'm looking forward to the sounds you add to the slot machine(06-09-2024, 02:29 PM)TerryRitchie Wrote: 100 lines of code, very impressive.
However, to be fair, you are using some very advanced techniques. I had to keep the example solution to statements introduced from lessons 1 through 10. But even then I'm sure I would struggle to get the code to 100 lines.
Something like this sounds like a fun challenge. "Create code from this game example with as little lines as possible."
"However, to be fair, you are using some very advanced techniques"
I agree. I found that this assignment was definitely a clear leap up both in terms of complexity and of program design so to say (from the perspective of a beginner of course). His variant is super concise and simple, but for sure too advanced for me What this Slot Machine program really lacks is sound...but that is covered in Lesson 12 I think...
Heck, that sounds like an excellent "your turn" section for Lesson 12 as I don't have one yet. I'll add that in a bit.