Hey there,
My assignment is to make a bowling game, however I'm not nearly there
I wrote this bit:
(Parser class just converts string to integer and returns it)
this seems to work,public void shoot() { for(int i = 0; i <10; i++) { System.out.println("turn1"); turns[i][0] = parser.getInput(); if(turns[i][0] != 10) { System.out.println("turn2"); turns[i][1] = parser.getInput(); } } }
And now I am wondering how, and if I can control that the input does not exceed 10(10 pins),
I tried doing this in my parser class, however I can't use an if statement there, since then I cannot return anything.
(can I do this somehow?)
Could anyone point me in the right direction?
Thank you for your time.
P.S, how do I go about changing my password on this site?
Thank you for your time!