alsora / deep-briscola

Tensorflow Deep Reinforcement Learning agents playing Briscola card game
21 stars 7 forks source link

Sorting hand function #3

Closed MichelangeloConserva closed 5 years ago

MichelangeloConserva commented 5 years ago

Just adding a sort function for the hand

alsora commented 5 years ago

reorder_hand now works on a single player hand and takes the player id as argument. the comparison between cards is done using the briscola environment scoring function.

scoring, get_strongest_card, get_weakest_card (used by AIAgent for deciding best move) are moved outside of BriscolaGame class, since static methods in python are ugly