Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Concise and efficient.
I nearly solved this kata in java but when I attempt with my solution I get 6 tests passed and 1 timeout error. It does not even show the test that my code is failing at. My code passes these tests:
testberry
teststrawbery
testaple
testjavascript
testheaven
testcoddwars
Do you guys know how many test there are in java and what's the last one? It's really hard to sort it out not knowing where it's failing.
If by the 'real life game' you mean person vs person I think it's likely someone aims at the same spot by mistake...whether the player looses a turn or gets a second chance is a matter of the agreement but here if the solution doesn't take that into account multiple points will be scored for the same spot, so I thought it would be nice to clarify whether only unique coordinates will be passed.
java
Hello, it would be nice to clarify in the instructions if the solution should handle multiple attacks on the same spot. My solution clears all spots that were already attacked in order not to count duplicate points if there is another attack with the same coordinates but I tried a solution that doesn't do that and it also passed all the tests.
exactly, strange it got so many 'clever' votes.
This is not a valid solution, it returns true for {'n','n','n','n','n','w','w','w','w','w'}