5 kyu
Play PacMan : Devour all
Loading description...
Puzzles
Games
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.
hey! I'm trying to understand the requirements. This is example map 5 and it doesn't have a solution:
["D","D","D"], ["E","P","E"], ["E","E","E"]
Does it mean that it can't go to Empty places? In this case E acts the same way as W, so what is the difference between them?
Also...pacman should be able to go back and forth, is that not the case?
The task is: To find a path that it's starts from the position of "P", and go through all of "D"s. The path should not contain duplicate positions and empty positions. Is this clear?
This comment has been hidden.
for this kata :
Question: Does the solution need to be the minimal path (shortest array) to devour all the pellets, or will it accept a path like one where Pac-Man does a few laps around the matrix before eating the final pellet?
Description said:
So your Pac-Man can only eating dot and moving to the next dot, until all the dots are eaten by Pac-Man ;-) It can not moving out of dot, because it's a lazy Pac-Man ;-)
so Pac-Man cannot traverse the
E
cells (empty cells)? Also, a quick look at some of the test cases shows that Pac-Man will have to traverse over cells that he's already explored, so it would appear those cells would have to be added to the direction path list, meaning the output list may contain duplicates. Please clarify, thanks.What you need to return is: A Coordinate array that contains all coordinates of dot, continuous, not repeated and no cross.
Thanks for clarifying. This is a great kata and incorporating the animated canvas element in the test results adds a nice touch! 👍
代码过了但是问题来了 怎么给你改description呢?
直接改就行,没问题的
是不是应该在kata编辑里设置一下允许contributors? 我找不到入口 可能honor太低了吧没权限
我看一下
上gitter聊?
可能是你荣誉分数低没权限 没怎么用过gitter...
那就加个Q吧 378562245……
什么破服务器!!!
Thank God, I'm back ;-)
:-) Thought you will start at 0 again;-)...
8kyu can not do anything, can not create the new Kata, I can only play
kumite
.8kyu can not do anything, can not create the new Kata, I can only play
kumite
.8kyu can not do anything, can not create the new Kata, I can only play
kumite
.8kyu can not do anything, can not create the new Kata, I can only play
kumite
.Junk server...
Junk server... comments can not be released
crazy?????
Junk server... comments can not be released
8kyu can not do anything, can not create the new Kata, I can only play
kumite
.poor server, can not submit reply...
Yes, but saw your comment(s);-)... really many bugs at the moment... and some are very strange. I often have problems submitting solutions ("... issue... " error) and sometimes i can't see my code in the solution list. Sometimes points count down instead of up...
poor server!!! can not reply!!!
#$%#$%#$%#$?????????
can not reply,CW is crazy?
Hi, Warriors! There is a new kata needs your help!
Please help me test this kata and give me some feedback, thank you!
Hi, Warriors! My new Kata release, may contain errors, please test it and give me some feedback, thank you!
https://www.codewars.com/kata/575c29d5fcee86cb8b000136
This comment has been hidden.
Ok, have it, everything works fine;-)! Really really good and nice one, enjoyed to solve it:-)! So once again very well done!!!
To my doubts, Why don't more warriors visit this Kata? :(
It's too difficult, nobody is able to solve it:-)! No... perhaps it's new (some hours) and weekend too. But a little bit strange with all these game katas... Without your last one before, these katas are not "very easy", may be it's really the reason?
A strange feeling...
It's not so important... You are able to publish such challenging katas, so a good learning for yourself and a good "show" here on CW (and fun for me;-)). But surely next time there will be some more solutions... because coding only pure mathematical things and always things of same kind is boooring;-)
Ouch! :)
:-)))... Only a little bit (boring)... and only for me, don't mean your katas (really really good ones);-)))... Perhaps you can try this one here, it's really good (have a look, PacMan is running over your screen);-)! You know our Chinese friend needs a little bit help to get him happy again;-)...
I like to make some jokes. :-) Thanks to @myjinxin2015. He's enreaching our community with very interesting katas.
Yes... i like it too;-), so what about a new solution to this one;-)? It's only a "little game" and no "complicated mathematics";-)?!
The new Kata release, may contain errors, please test it, thank you!
No change to submit my code... always CW errors... very instable since days, so i give up now. But looks very nice again (first tests worked, really nice to see PacMan's hungry way:-)), so good work - i like these "maze" / "flood fill" katas;-).
I have to say good night, you know ;-)
Yes i know, good night and don't dream of PacMan;-)!