prototype for playing card game writen in golang
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
.DS_Store
.gitignore
LICENSE
README.md
_config.yml
cangkulan.go
card.go
cardGame
deck.go
player.go

README.md

goRemi

Go Report Card Release Status Go GitHub license

prototype for playing card game

Cangkulan Game Rules

  1. shuffle deck
  2. put 1 card from top of deck to table
  3. give each player 7 cards
  4. start playing from player 1 (clockwise)
  5. each player pick one card with the same flag as the card on top of the table, place player card on top of the table
  6. if player doesnt have card with the same flag draw card from deck until player get the card with the same flag 6.a. if deck doesnt have any more card, draw card from the top of the table
  7. after all player throw card to the table, compare players card, player with highest number win the round
  8. continue to play from player who win from last round, player who win last round can choose any card to play first
  9. repeat 5-9 until one of players doesnt have any more card
  10. Win!!!

Preview :

https://gph.is/2xIMo6o