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.
Fun kata.
For Java kata description, add the case for Tie game.
Where both players got the same score
T
stands for Ten. Between Nines and Jacks.What is T card means?
Java no random tests
'it works on my machine' is not a proper issue report. print the input, see what cases you are failing, and debug your code. this can help
[Python]
I have passed all normal tests, but I keep failing all automatic tests for no reason. On Jupiter Notebook and PyCharm code works fine and shows results.
C translation ππππ (author gone)
closing
I just solved this kata in Python to see what's going on - I resubmitted a few times to see if anything occured with random tests, and it all went fine.
I then tried with your code (what I can see in View Solution currently) and I think that's where the problem is:
you seem to be mutating the input arrays (note in the preloaded code it tells you to not do this:
# Don't modify the deck arrays
) and this is causing the errors in the tests as the arrays it is "testing" are no longer the original ones.To help you get started, the kind of lines of code you need to look at are the ones:
etc.
Also, please don't use issue tag for problems with your code; it's reserved for really important kata issues only.
Hi, i just passed all tests except randomised decks (with the following error):
Traceback (most recent call last):
File "/workspace/default/.venv/lib/python3.10/site-packages/codewars_test/test_framework.py", line 112, in wrapper
func()
File "/workspace/default/tests.py", line 69, in it5
known_winner(steve_deck, josh_deck))
File "/workspace/default/tests.py", line 42, in known_winner
diff = face_values[s] - face_values[j]
KeyError: '10'
It doesn't seem to be a problem from my code, then I don't know what to do :/
.
.
Node 14 support + random tests
Approved!
Loading more items...