This means each user HAS to put 5 chips (out of their initial 100) into the pot. (This is kind of an unfair advantage that the human player has, but for the sake of the user I want him/her to see exactly what is going on).Īfter cards are dealt and displayed on the screen each user will "ante up". Once cards are dealt initially they can be seen by the human player. The game works by initializing all structures, building the deck, players, game, shuffling the deck, and then dealing out cards to players. I recommed running the game with the ONLYCPU flag marked as 0 first. To enable this change "#define ONLYCPU 0" to be "#define ONLYCPU 1" in the player.h file. It is possible that all players be computers that play against one another. In this version of 5 card draw poker I have created 4 players. It only generates warnings, it does not generate errors, or inhibit the flow of the game. I have tested it on OSX and ubuntu and it works. As far as I know this is a portable solution. I am using unicode characters to display suite values. You should see a few warnings to do with the unicode characters I am using.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |