Daniel Hoang wrote:I dont know how to better word my question. Like if i have object classes, Game 1, 2 ,3 4, 5, and 6, all with different games. How can i have the user input "1" and the Game 1 class will execute?
Daniel Hoang wrote:What also makes my code hard to read out of curiosity?
That makes it sound as though you are trying to do several things simultaneously. Don’t. Do one thing, get it working and then move on to the next thing.Daniel Hoang wrote:I have not learned interfaces or polymorphisms yet. but i am close to getting my loops to work at least.
Daniel Hoang wrote:Im not trying to do several things at once.
Im still currently working on making my loops work, it just takes me a while.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
And I though you meant those three do loops in the main method. You need to be clear; remember we can’t look over your shoulder and see what you are doing. (I bet you are pleased about thatDaniel Hoang wrote: . . . By loops, i meant the dice loops in my game1 class. . . .
Paul Clapham wrote:Indentation which matches the actual code logic would be like this:
Don't get me started about those stupid light bulbs. |