5 kyu
Sungka
21tenick
Loading description...
Games
Puzzles
Simulation
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.
The reference solution in Python does not follow this rule, which can lead to unexpected failures in the random tests for solutions that do follow the rule.
Here's one such input:
Maybe so, or maybe the description is not very clear about this part. From the example, I read this rule that a move should be ignored in such case, but the player stays the same.
Following that rule, all remaining moves would be skipped if the player's row was empty, because there are no valid moves.
You're right I should clarify that if the current player's whole row is empty, then it should only skip his turn but the move is not skipped. (of course if both players whole row is empty, then end the game)
Also, if the current player's move points to an empty hole, but its whole row is not empty, then it will skip that move but not the players turn.
I'll update the description and reference solution, thank you
done
I suggest to add these edge cases tests in sample/fixed tests:
move = [5, 5, 1, 3, 1, 4, 2, 7, 7, 2, 3, 4, 3, 2, 7, 2, 1, 5, 2, 2, 3, 2, 3, 6, 4, 3, 5, 5, 4, 3, 6, 4, 4, 4, 3, 2, 2, 2, 4, 5, 6, 3, 1, 5, 2, 6, 6, 5, 2, 7, 5, 7, 4, 5, 4, 1, 2, 5, 5, 4, 5, 3, 5, 2, 6, 4, 2, 4, 3, 4]
move = [5, 1, 6, 1, 7, 1, 2, 4, 4, 5, 3, 6, 6, 4, 5, 6, 7, 2, 3, 4, 5, 7, 1, 2, 7, 5, 3, 3, 7, 1, 1, 4, 6, 3, 2, 2, 6, 7, 1, 1, 2, 7, 7, 6, 5, 2, 5, 6]
move = [7, 3, 3, 2, 4, 1, 1, 4, 3, 7, 5, 1, 2, 5, 4, 7, 1, 6, 2, 7, 2, 3, 7]
Done
thank you
Should add
simulation
tag. If you're still considering developing a follow-up kata that involves actually playing Sungka against a bot, it would be advisable to modify the current kata's title to something more descriptive like "Sungka Simulation" to better reflect the potential future implementation and scope of the challenge.I'll take note of this and would change the title if I ever start making a follow up. I could also do something like Sungka I, Sungka II
could you add the tag though ..
done
Requires an update of Python framework.
done
thank you
This comment has been hidden.
hi thanks for this! I added a fix now
How does - bookmarks or - collections happen? hence, -24 stars(bookmark) for this kata.
That's a good question.
To be honest i think I'm the one who caused it. I tried clicking on it and I noticed that sometimes it increments or decrements more than 1 time. So I tried spam clicking it to see what happens and it reached -3 so I stopped. I just thought that it's just some frontend issue and the backend won't be affected but turns out suddenly it's -24 lol I'm not sure how is that even possible. I hope this doesn't affect my Kata in some way though..
You could post this explanation in the issue I linked above (#2185) so kazk would have better idea what could be the cause.
-31 stars holey cow.
-55 wtf :D
i think it;t actually 9 XD
twice collected by me now, curiouser and curiouser.
Her: so, how old are you?
Me: I am this old.
?
Ooooohh yea I remember this game but I didn't know how to play it before lol @ialiyen Bantumi is basically Mancala for Nokia.
This:
https://playminigames.ru/en/game/kalah?emu=2
I remember I managed to work out a strategy which was guaranteed to win against the phone, but I do not remember it now :( When reading the description of the kata I actually hoped it would be a bot fighting about some refernce solution with objective of winning the game. Kinda disappointed it's not, and I think it should be your idea for next kata :)
Yeah you're right I think that's better. But you know there are some Katas that are related, like the 4x4 skycrapers kata then 7x7 skycrapers kata. So I'll probably make something like that.
Lovely one, very well done!! Thanks for making it :-)
Thank you so much man this is my very first Kata I very much appreciate your take on this one! If there's anything you find something to improve, maybe the description was too wordy, maybe the test cases are not enough, or you found something else please let me know! :)
Nothing I can come up with... well written in all. You may have to wait for more people to finish so you'll get a better perspective. The thing with katas about games is that you have to explain in length many rules - could be deterring, but no choice for you... you have to explain. I hope many people know the game (or mancala), because it helps a lot. So I suggest that you add to the description a link to a real on-line game (like Unnamed's link / maybe something a bit more modern???) where people can play the game first.
You're right man. I found a modern website for mancala game and will add it in my description, thanks!