carlofazioli / cardiathena

A project to study strategies in the game of hearts, using distributed computing, AI, and data analytics.
GNU General Public License v3.0
6 stars 1 forks source link

LowLayer passing_smart_facevalues (method 2 passing) #83

Closed davidjha closed 4 years ago

davidjha commented 4 years ago

Describe the bug There is an error in passing by the average of face values (method 2). Faces values aren't being averaged but the number of cards in a suit is being averaged instead.

To Reproduce Steps to reproduce the behavior:

  1. Comment out method 1 passing at line 53.
  2. Un-comment method 2 passing at line 54. or Inspect line 185 for facevalues in suits_weights:

Expected behavior Method 2: Average the face cards in each suit, and pass the highest cards from the suit with the highest average. (J = 11, Q = 12, K = 13, A = 14). Repeat if void.

davidjha commented 4 years ago

Merged.