from itertools import combinations
import json
from yaniv_rl import utils
from yaniv_rl.game.card import YanivCard

suits = YanivCard.suits
ranks = YanivCard.ranks

deck = utils.init_deck()
handcombos = combinations(deck, 5)

scores = {s: [] for s in range(51)}

for hand in handcombos:
    score = utils.get_hand_score(hand)
    scores[score].append(utils.cards_to_str(hand))

with open("scores.json", "w") as f:
    json.dump(scores, f, indent=4)
d61b8657cb6bc1439d20fd7543c668e90a6cdae0
<mask token>

<mask token>
for hand in handcombos:
    score = utils.get_hand_score(hand)
    scores[score].append(utils.cards_to_str(hand))
with open('scores.json', 'w') as f:
    json.dump(scores, f, indent=4)

<mask token>
suits = YanivCard.suits
ranks = YanivCard.ranks
deck = utils.init_deck()
handcombos = combinations(deck, 5)
scores = {s: [] for s in range(51)}
for hand in handcombos:
    score = utils.get_hand_score(hand)
    scores[score].append(utils.cards_to_str(hand))
with open('scores.json', 'w') as f:
    json.dump(scores, f, indent=4)

from itertools import combinations
import json
from yaniv_rl import utils
from yaniv_rl.game.card import YanivCard
suits = YanivCard.suits
ranks = YanivCard.ranks
deck = utils.init_deck()
handcombos = combinations(deck, 5)
scores = {s: [] for s in range(51)}
for hand in handcombos:
    score = utils.get_hand_score(hand)
    scores[score].append(utils.cards_to_str(hand))
with open('scores.json', 'w') as f:
    json.dump(scores, f, indent=4)

from itertools import combinations
import json
from yaniv_rl import utils
from yaniv_rl.game.card import YanivCard

suits = YanivCard.suits
ranks = YanivCard.ranks

deck = utils.init_deck()
handcombos = combinations(deck, 5)

scores = {s: [] for s in range(51)}

for hand in handcombos:
    score = utils.get_hand_score(hand)
    scores[score].append(utils.cards_to_str(hand))

with open("scores.json", "w") as f:
    json.dump(scores, f, indent=4)