Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trade Penalty #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Trade Penalty #1

wants to merge 2 commits into from

Conversation

jjoshua2
Copy link
Contributor

@jjoshua2 jjoshua2 commented Mar 15, 2019

Need depth... I saw a piececount in bitboard.

Having a if winning/losing check would be good. We don't want to apply penalty if we're behind more than 100cp I think. But when you are black against a weak opponent you still want it...

if q < 0.7 && q > 0.3

Need depth... I saw a piececount in bitboard
//Apply trade penalty if not very winning or losing.
//TODO: Try only if Allie losing
@manyoso
Copy link
Owner

manyoso commented Mar 15, 2019

I think this should be done in Node::setQValueFromRaw by modifying the stored m_qValue for non-exact nodes.

Also, you can get m_game.activeArmy() to determine which side the node is on. Also, you can use m_game.lastMove().isCapture() instead of bitboard.

Awesome work, thanks!

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.

2 participants