Hi,
I try to make an online version of a card game. I created most of the logic but I screwed up somewhere and need help to debug (doesn't start anymore)
and to finalize it.
Cards used are (from the weakest to the strongest) 7-8-J-Q-K-A-9-10 (yes, not all the cards are used and the values are a bit strange but that's what it is
)
https://conteur-de-legendes.skyrock.com ... taine.html (winning score can be anything...)
http://jeuxdecartesinedits.blogspot.com ... taine.html
https://www.pagat.com/tressette/quatresept.html (similar but not exactly the same)
Thank you!
I try to make an online version of a card game. I created most of the logic but I screwed up somewhere and need help to debug (doesn't start anymore)
Cards used are (from the weakest to the strongest) 7-8-J-Q-K-A-9-10 (yes, not all the cards are used and the values are a bit strange but that's what it is
- Played in 2 teams of 2 players seated opposite to each other.
- Cards are distributed this way : 3 cards to each players, 2 cards to each players and 3 cards to each players - done
- Much like hearts, we have to win tricks. The player with the best hand starts the next trick - done
- If a player has 10-9-A of the same color, it's called a Poule (or Politaine. It has many names, none of witch are in English ...)
- If the player can wins 3 consecutive tricks with La Poule, it is successfully played. Otherwise, La Poule is lost. - done
- Scoring (end of a hand) - To complete:
- Each Poule successfully played gives 11 points
- Each A's gives 1 points
- 9-10-J-Q-K : you need 3 of these cards to make 1 point (basically it's the quotient of the number of these cards divided by 3)
- 7 and 8 are worthless
- The team to win the last trick of the hand gets 1 point
- Players can't lookup their "cardswon" (the dead don't talk!)
- Québec rules (There's many variants but I'm implementing the one we play in Québec):
- All 4 8's dealt to one player gives victory to it's team
- If a team scores 0 on the first hand, they lose the game
- 32 points are needed to win
https://conteur-de-legendes.skyrock.com ... taine.html (winning score can be anything...)
http://jeuxdecartesinedits.blogspot.com ... taine.html
https://www.pagat.com/tressette/quatresept.html (similar but not exactly the same)
Thank you!