MikeConner / hudacard

Game for Damon
0 stars 0 forks source link

Chokes on decimal in bet amount #5

Closed Stampede closed 11 years ago

Stampede commented 11 years ago

Tried to bet 19.4 mBTC. It crashed and said "sorry, something went wrong."

When I hit the browser back button, it went and replayed the hand that had just completed. It did NOT screw up the game balance, just went back in time so I wound up with the same money I had before trying to bet 19.4 mBTC.

EndymionJkb commented 11 years ago

It has to be an integer number of mBTC. Otherwise it introduces a lot more possible error cases, so we thought this was an acceptable limitation.

Stampede commented 11 years ago

Yeah, we can live with demanding an integer # of mBTC. I see that you changed it so it throws a specific error and says "bet must be an integer." That's fine for now. Maybe later will have to have bets denominated in 1/10 mBTC but this will work for now. Thanks.