7 kyu
Go: Stone Scoring
674 of 762leonmartin
Loading description...
Lists
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
C Translation
Approved.
easy kata with long story !
Maybe be a repeat of value-counting katas, but more practice with a slight variation lets you see how to apply different techniques to solving a kata.
Duplicate of all the value-counting katas.
Kjtza agrees in another comment that there is still some merit here.
edit: oh, the tie thing is already talked about below.
Thanks, your points should be fixed now.
.
afaik, when there are empty tiles, they are affected to the winne. => it seems the kata isn't following Go rules.
ok...
Will there ever be a situation where there is a tie? Either way, this should be explicitly stated.
It is stated now, thanks.
Description: "If there is a tie, return a "T" and the number of stones of one side as a tuple, e.g. ("W", 32)".
I think you mean: "If there is a tie, return a "T" and the number of stones of one side as a tuple, e.g. ("T", 32)".
True.
No random tests.
There are random tests now.
Sample test shows a board with
17
Black stones but the result expects21
stones.EDIT: So, either the description is wrong or the reference solution is wrong: The reference solution counts all non-black stones, whereas the description only tells us to counts actual black stones.
Fixed, was missing an if condition.
board = [["W","W","W","B","B","B"], ["W","W","W","W","B","B"], ["W","W","W","B","B","B"], ["W","X","W","B","B","B"], ["X","W","B","B","B","B"], ["W","W","B","X","B","X"]]
could be:
Adopted this.