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 Low-Layer ( Minimizing Agent ) #64

Closed msomarri closed 4 years ago

msomarri commented 4 years ago

Description

The low-layer plays defensively, and wants to minimize point

Tasks

Helping Functions

Passing

Leading Boolean Functions

Normal Plays

Void Play

aphelps4 commented 4 years ago

We should discuss consolidating MinimizingAgent.py and MinimizingAgentV2.py into one file. It seems like V2 has the player call the sloughing function when they are void in the suit while V1 makes a random choice there. V1 has more changes so I believe it would be easier to move the functions sloughing(partial_state) (lines 120-131) and bad_suit() (lines 133-154) from V2 to V1 and change line 84 of V1 to line 77 of V2. @msomarri @irobert4 Does that sound good to you guys?

irobert4 commented 4 years ago

@aphelps4 I agree with this, I think we should also consider renaming the Minimizing Agent to something else. On slack, Carlo suggested "BasicAgent" or "TrickAvoidingAgent", but we could also go with "LowLayerAgent".