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

Fix parse record #53

Merged
merged 2 commits into from
Jun 23, 2024
Merged

Fix parse record #53

merged 2 commits into from
Jun 23, 2024

Conversation

primenumber
Copy link
Owner

@primenumber primenumber commented Jun 23, 2024

Record まわりの処理がバグりまくっていた。

Comment on lines -49 to -53
let mut score = if self.hands.len() % 2 == 0 {
final_score
} else {
-final_score
};
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

final_score は手番から見たスコアではなく黒番から見たスコアだった

Comment on lines +87 to +94
Hand::Pass => {
writeln!(
&mut writer,
"{:016x} {:016x} {} ps",
board.player, board.opponent, score,
)
.unwrap();
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

パス時がデータセットに入らないバグを修正

@primenumber primenumber merged commit 30007de into master Jun 23, 2024
1 check passed
@primenumber primenumber deleted the fix-parse-record branch June 23, 2024 21:30
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.

1 participant