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

The shooter agent #78 #88

Closed aphelps4 closed 4 years ago

aphelps4 commented 4 years ago

I looped through 200 games and it did not run into any errors. It is a rough implementation but it works well enough to push into master. This branch also has the fixes for LowLayer.py so it is important to get that into master as well. I plan to add more details to Shooter.py later such as determining whether it is better to pass a hearts card or a lower card from a different suit.

davidjha commented 4 years ago

Oh also, I think it might be a better idea to keep the save feature, in the lowlayer, in a new branch. I don't think the idea is fully fleshed out yet.

irobert4 commented 4 years ago

That's a fair point.

Frankly I'm not sure why we decided to add those features in the Equalizer branch. They really don't belong there.

aphelps4 commented 4 years ago

Good start but obviously needs more things implemented such as passing from Shooter.md. Also a new method, might be needed (maybe in the adjudicator), to pass out 26 points to other players at the end of a round when a player has successfully shot for the moon.

The update_score function in the adjudicator actually does handle shooting for the moon. I have a function at the bottom that tests that (although it is old and does not work with the current format of our adjudicator anymore).