opfclimate.blogg.se

Okey game source code
Okey game source code




okey game source code

Note that by continuing to play instead of exposing your ordinary win, you run the risk that another player may complete a winning hand and expose it before you can achieve your double win, in which case you gain nothing for your concealed winning hand. If you are able to end the game by discarding a joker and exposing your remaining 14 tiles as a winning hand, your win is worth twice as much as an ordinary win. If you wish, you can continue playing in the hope of forming a winning hand plus a joker as the last discard tile. If you have a winning hand of sets and runs using at least one joker, you do not have to expose it immediately.

okey game source code

Exception: When a player’s collection is complete the last tile is discarded on the pile in the middle of the table, ending the game. This continues in counterclockwise rotation until a player forms a winning hand and exposes it, ending the play.ĭiscarded tiles are placed to the right of the player who discarded them, in a stack, so that only the most recent discard in the stack is visible. Finally, they must discard one unwanted tile. After this, each player in turn may either take the tile just discarded by the previous player or draw the next tile from the supply in the centre of the table. The player to the dealer’s right begins the play by discarding one tile face up. Okey is played by up to four people of which one is determined to be the dealer. The whole game is played counterclockwise. The first player to complete their hand wins the game. This can be achieved by drawing and discarding tiles. The objective of the game is to form a hand that consists entirely of sets of equal numbered tiles and runs of consecutive tiles of the same color. During the game each player receives a hand of 14 tiles.






Okey game source code