Skip to content

semihunaldi/rummikub-find-best-hand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project for finding best hand on rummikub game.


A little explanation about followed alghorithm to find the best hand.

Steps:

  1. Tiles generated for each color and fake tiles.
  2. Tiles shuffled and joker randomly picked.
  3. Fake tiles adjusted with the picked joker.
  4. First user has given 15 tiles who picked randomly, remaining tiles assigned to other players evenly with each count of 14.
  5. Hands printed on console.
  6. For each players hand, the hands are grouped with every possible meaningful combination.
  7. To compare hands with each other, a score system implemented.
  8. Every hand, ordered with the best combination.
  9. Best ordered hand report printed on console.
  10. The score system takes account of whether or not hand has joker, double joker, ungrouped tiles count, duplicate eligibility, etc.
  11. The hand with highest score is the best hand.


Note: Test are partially implemented.

About

Project for finding best hand on rummikub game.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages