Closed JacobLeach closed 10 years ago
Google led me to fuzz testing. i'm going to try and make it so i can automatically throw it all sorts of inputs and check for an exception
Added a Fuzz Unit Test. Running it 10M times now.
Passed 10M, running 1B.
I'm assuming I shouldn't have to check for the hand being bust or blackjack right? I should assume that the hands passed are correct?
Ok the 1B didn't finished (after hours lol) but I've got to assume it hit all the possible hands.
Cursory reading looks really good. I'll run the tests and try to come up with edge cases tomorrow night, and then accept the PR. Added a few comments to some of the lines if you could take a look at them.
does any more of this code depend on SPLIT never being used? We must go back and reimplement split.
Yea. I have to redo it since there are now hand combinations that I do not account for. Before I just treated hands with aces as special. Now I have to check if it is a special hand, and it is not then do it by value. There is a NONE so we can use that instead.
schweet
testing
Good with the latest commits!
:shipit:
Needs more testing and perhaps some corrections for three card ace hands