Attack and defend like a knight!
Tấn is one of popular poker games in Vietnam."Tấn" in Vietnamese means attack.The game is for a group of from 2 to 4 players. Players attack and defend in turn until all cards in their hands down to win.Playing guide:Each game set, there is a suit selected randomly to be the royal suit.Other suits are normal suits. Strength of cards in a suit increase from 2 to A.A royal card is stronger than all normal cards, despite of their rank.Two normal cards in different suits are not able to compare to each other. So, there is no the stronger one among them.A set has many rounds.At begining of a set, each player is distributed 8 cards randomly. Remaining cards will be distributed to players after each round if their card number is smaller than 8.Roles in a round:- 1 attacker (A)- 1 defender, in the right of A (D)- from 0 to 2 sub attackers, in the right of D (t1, t2)- T, t1, t2 attack D one by one. And D should defend those attacking wavesRule to attack:- attacking card number does not exceed the card number in Ds hand- the first wave, when there is no card on the table, attacking cards should be same rank- the next waves, attacking cards should be same rank with cards on the table- if the current attacker cannot find a suitable card to attack or just want to stop, the attacking right is given to the next attacker- if the last attacker stops, the attacking right is given to the defender to start a new round. In the new round the old defender becomes the main attacker A.- if the attacker spends all his card to attack, he winsRule to defend:- should use stronger cards to defend- if cannot defend or just want to surrender (for the tactical purpose of holding big cards for example), defender must take all cards on the table- if the card number on the defenders hand is greater or equal 17 (over 8 x 2), he loses - if the defender spends all his card to defend, he wins.Scoring: - the 1st rank: 4 points - the 2nd rank: 2 points - the 3rd rank: 1 point- the 4th rank: 0 point The 1st rank player has the right to go first (be the main attacker A in the first round) in the next set.Note: above is my modification version of Tấn in order to fit it on mobile phone. The traditional version doesnt limit number of holding cards, uses Jokers as strongest defending cards (but Jokers arent attacking cards), the 4th rank player should tribute the 1st rank player (King) the stronggest royal card he has at right begin of next set and the King returns him an any card for compensation.1.3- fixes Q image- keeps players scores after restarting game1.2- uses new cocos2d-x framework1.1- improves AI- adds 2 new levels