akaps / hanabi_ai

AI competition of the card game Hanabi, where the best AI is measured as the most cooperative and contributes to the highest scoring games
MIT License
1 stars 2 forks source link

Make Hands OO #132

Open akaps opened 5 years ago

akaps commented 5 years ago

Current implementation: Hands are a list of strings, the first char is a string representing color and the second is the rank In HanabiTable, hands are represented with two pieces of info. The known info and the visible info (you can't see your hand, you were told the second is a 3) The two pieces are separate lists, which makes managing them in player_utils trickier than they should be. You should have one object you can reference for known/visible info

Additional benefit is HanabiTable and GameInfo shrink the number of params by 1