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.
i really should have put a bit more thinking into this - i forgot to check if the player has won
thank you for pointing that out
yup, forgot to copy paste into sample tests - thanks
I think you're still logging
" "
in the example tests no? The test graphics look really bad and compressed.This comment is hidden because it contains spoiler information about the solution
note:
test.expect_no_error
could be of use too, no?I just copy-pasted my java tests - my bad. I hope this "new" version is better.
Hi,
you cannot build tests that are logging
" "
as assertion message. That's totally useless to the user.Note that the tests should use
test.expect_error(...)
(see here if needed) rather than your complextry/except
stuff (with no assertion message...)cheers
If it is too similar, I could make this a bit more complex by including both starting possibilities, resulting in 3 kata's about this puzzle:
(just an idea)
good hint, when searching for similar kata's i only found "NIM - the game" (https://www.codewars.com/kata/54120de842dff35232000195, i think there is enough difference hence its call Simplified Nim)
im not sure if it is too similar,
i think the main difference is throwing exceptions (and obviously the AI goes second in this kata)
Isn't this kata too similar?
https://www.codewars.com/kata/5866a58b9cbc02c4f8000cac
There also was a kata titled "NIM - the game", I cannot find it now though.
Why is this issue resolved? Your random tests are worthless: the "player" is not playing optimally, the tests don't detect when the "player" has won, there's no validation on what's user returning - this is still a bunch of random lines code which do nothing.
you're absolutely right
the random tests now do random stuff until they can "end" the game, and then they will win it
(now they are at least not completely useless, even tho the kata is too easy for useful random tests)
the print was, the bigger brain lag fix should be up now
(sometimes code wars is a bit bugged when a new test is released)
Nothing's fixed.
woops, forgot to take that out
Loading more items...