sepefeets;39543 wrote:That tiny penalty doesn't explain why excessive multi thousand penalties to playfield value don't make it pick a board that doesn't attack doomsayer, or why it takes excessive bonuses to get it to select another board. It's a dead end anyways because changing playfield value only affects which one is chosen, but if all the boards have bad action lists then it can only pick from bad to worse. In order to have "do nothing" as an option, the actions have to be denied from ever being added to at least some of the playfields because of the penalty manager or move generator.
We have to not add value for minions on the board - see my pull request. Sometimes the second turn calculation makes those 1k board value penalties not matter - as is the case with using a weapon to attack into doomsayer. By then the doomsayer is already gone but the weapon bonus is still there. Dre's #439.2 is an example of this second turn (turncounter = 1) effect.
EDIT: and the getPlayfieldValue retvals are 8 for the correct non-attack move and 9 for the incorrect attack move. With penalties of -1 and -5 respectively (i think).
For those who are looking into it:
The value of "do nothing" actions is calculated. It goes through each possible board one move at a time and calculates the boardvalues. First is 'no action', then 'only one action', then 'only two actions', up until all possible moves have been exhausted or calculation limits are reached. Even if the playfield is not complete, meaning the possible moves have not been exhausted, if the board value is higher, it will keep it.
The
deep value is how many moves that playfield entails
The
len is how many playfields were simulated
The
dones is how many of those playfields have no more possible moves.
You can see it always ends calculations with the
len =
dones as long as calculation limits have not been reached. This implies the possible actions have been exhausted. And yes of course, it can sometimes miss moves.
So for example, playing a weapon and not attacking with it is simulated as a possible board.