Sorry, do I need to do something different for my program to work? Does it not work already?
Campbell Ritchie wrote:And how are you going to handle a 99×99 board?
Sorry, I forgot to tell you that I updated the update() method to handle negative numbers. Kindly take a look at that one.
Campbell Ritchie wrote:As far as I remember, the board class was all right before; I presume you haven't changed anything.
No,currently I restrict the board size to 26 or less. Is that OK?
Campbell Ritchie wrote:can it handle a size > 26, however?
The regex will allow 99 but the Board will catch it and print this message: The row or column entered is greater than the size of the board.
Campbell Ritchie wrote:But what happens when you give your regex square a99?
No, negative numbers can't get past the regex.
Campbell Ritchie wrote:By the way, is it possible to get negative numbers past that regex?
I have gone to look for myself. If I should return before I get back, keep me here with this tiny ad:
how do I do my own kindle-like thing - without amazonhttps://coderanch.com/t/711421/engineering/kindle-amazon