alnah005 / Konkan

Flutter game that is popular in my home country (Yemen)
1 stars 0 forks source link

Code up setting cards given conditions #25

Closed alnah005 closed 4 years ago

alnah005 commented 4 years ago

Currently on b9c4e8140c51910b32a0fa53159e0af71d456701 players are not able to set their cards in the code. However, players do have a set cards deck in the Player.dart file List<PlayingCard> openCards The purpose of this issue is the following:

  1. Given its a player's turn in game_screen.dart: a. allow player to set his cards if the conditions from the rules on the README.md in master branch are fulfilled b. If a player set his cards, move cards from player.cards to player.openCards. c. a player must have at least 1 card left in his player.cards deck
  2. After a player set his cards, the score threshold to set cards must be modified.

After 1b, hopefully the visualization will reflect the change.

alnah005 commented 4 years ago

e8e83fa67a3f587894ba8f4509f62bf33d036a89 contains 1a,1b,1c and 2 thereby completing this issue.

One thing that's missing is creating the groups to set.

Currently the groups always consist of only one group that consists of the first card and the last card that are in a player's hand.