It almost work. The problem is that if I bet for example BLACK or RED I have notice error. Same if I bet column,row,even,odd
Your question didn't say anything about this initially. You just asked for help with checking, so that the user is prohibited from specifying any other numbers in the command except from
0 to
36 inclusive. You also did not provide the full syntax of what your command looks like, which can be written by a user-player.
Probably, the command syntax looks like this:
!play <black|red|column|row|even|odd> <0-36>But I donβt know that, so I made a piece of code based on minimal information, in the hope that you can complete the rest yourself.
If you need to do more than this, then provide as much information as possible, and also include an example of complete gameplay between a player and a bot, as you imagine it. Every step of what the Player writes, and every step of what the Bot writes.
In addition, since perhaps not everyone has played real roulette, you need to provide a complete list of the rules of this game, what the bets can be, etc., if you want one of the mIRC scripts developers present to write for you a full-fledged working code for playing roulette (in free time from work).