BANK rolled a 1,1,1 and won with a score of 20 Trip but I didn't get to roll, why ?
Because a triple is an automatic win for the Bank. I'm using Wikipedia's description as the standard for my game.
If the bank had gotten n,n,1, it would've lost instantly. It's funny because this happened for you:
BANK rolled a 1,2,2 and won with a score of -1 but I didn't get to roll, why ?
You said "and won", but actually the Bank lost - that's why you are highlighted as Green. I don't know why the "You've won!" didn't appear though... In fact I don't see "You've lost!" either appear, odd.
You didn't get to roll because you didn't have to - you either instantly won or lost in both of the cases you posted!
Not sure why username suddenly disappeared!
I never got to test the multiplayer since nobody was in the room although it does seem like great way to bring the crowd to the game.
Multiplayer was probably the hardest part of all this. The game itself did not take long to implement. It is extremely difficult covering all these edge cases. To be transparent, it is even possible to pay money to Croc-lo, but be "kicked" from the lobby by the host. It is a very tiny window of time,
but is not exploitable, because the host does not know if someone is connecting or not. Someone is considered "joined"
only when their payment has gone through. There is also no benefit to people who do this. Because:
In these cases, users can contact me with their Tx hash, and I will refund them. It can be automated as well, but I'm not sure how reliable that could be. Manual intervention seems like the best course of action.
The only way to avoid this is create an account system, have players send money to their accounts, and start games using their account credits, which a huge fucking slew of complexity I don't want to touch. This is essentially what all walled-garden online casinos do. It is a non-issue as I said if I issue refunds either manually or automatically.
This is also why only relatively small amounts of CROC can be used (1-100). It is not like a casino where you are physically there with reality-based security (lol)! Plus if something goes wrong it is not the end of the world, and worst comes to worst, I can issue a refund based on what has happened.
The way I have it now is ideal in the sense that everything is dealt in absolutes - we are only dealing with CROC.
top 10 highs wins,
top 10 highest bet's
# of Roll sins the game launch
So here's the thing: there is no database attached to this sucker. I do not record anything. This was out of lack of time and no need honestly. I have architectured and developed everything from scratch over the week after work. As far as I know, this is the first (!) and only cryptocurrency Cee-lo implementation in existence.
I can record number of rolls, but if the server restarts they will be lost. Same goes for top 10 anything.
Keep the feedback coming
I will continue working on it tonight.