Skip to content

Resignation gene#151

Open
MarkZH wants to merge 15 commits intomasterfrom
resignation-gene
Open

Resignation gene#151
MarkZH wants to merge 15 commits intomasterfrom
resignation-gene

Conversation

@MarkZH
Copy link
Copy Markdown
Owner

@MarkZH MarkZH commented Aug 25, 2024

Closes #148

MarkZH added 15 commits August 7, 2024 22:42
Not involved in gameplay, yet.
If a player loses during a gene pool game, the parents of the offspring are chosen as follows:

- If the losing player lost due to checkmate or time forfeiture, the offspring is a clone of the winner.
- If the losing player resigned, the offspring is produced from mating the winner and loser.
The value of the Board Score Floor is now in units of pawn value. Previously, it was an arbitrary number based on the internal scores assigned to board positions.
Results are as follows:

1. Checkmate or time forfeit: Offspring is clone of winner and replaces loser.
2. Draw: offspring is product of both players and replaces one by coin flip
3. Resign: offspring is clone of winner or product of both players by coin flip, loser is replaced.
Start with values that won't have half of players resigning on the first move.
1. Call resignation test so it actually runs.
2. Fix test genome syntax.
3. Fix tests so they correspond to Max Under Floor Streak.

For point 3, if a player has a max streak of 4, then it will resign on the fifth move that is under the score floor.
In a gene pool, don't allow AIs to not face full consequences of losing to checkmate by resigning just before.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resignation gene

1 participant