I completed the game introduction that loads when the user first loads the game, so they will know how to play it. The questionGenerator method is quite a challenge because I’d need to ensure there are the correct number of values. One too few, there might be an awkward plus on the end. One too many, it looks like a 1259 when it is supposed to be 12 and 59 (or even 1 and 259, for that matter). I had to pay special attention to ensure there are no off-by-one errors. In the future, I would need to work on a method that evaluates whether the user entered a valid formula. I feel that would be hard because converting Strings to operations will be difficult, but I’m thinking of a solution that scans each character of the answer and conduct operations accordingly.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.