Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

score calculation #5

Open
sedire opened this issue Oct 12, 2018 · 0 comments
Open

score calculation #5

sedire opened this issue Oct 12, 2018 · 0 comments

Comments

@sedire
Copy link

sedire commented Oct 12, 2018

Hi! Thanks a lot for a great implementation.
While playing around with it, I noticed some strange behavior when score is calculated.
In the score() method of Position class:

while True:
i = self.board.find('.', i+1)

shouldn't it be board.find instead of self.board.find? Or I misunderstood something about go rules?
The way it is now, floodfill will not only be filling '.' fields, but also the others during score calculation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant