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.
expected:<67> but was:<68> i thinked that only return char
That's what it is. They're 3 individual scores (numbers), not lists.
What the hell does s1, s2, s3 mean here in Python? Is it multiple lists? This description is way more confusing than it should be....
What is wrong with the description?
Bad instruction = bad kata. Dislike
thnx bud
Yes, when you run only one test, but because you use a global var and it keeps its value between tests, all tests after the first one come up with a wrong answer, read this: https://docs.codewars.com/training/troubleshooting#works-but-no
i don't think so buddy, cause if you run my function for value of 274 you'll see the output as 37675
This message indicates that that your function returned 37677 when it should have returned 37675.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
๐ Terminal Game Move Function
In this game, the hero moves from left to right. The player rolls the dice and moves the number of spaces indicated by the dice twice.
๐โโ๏ธ Objective:
Create a function for the terminal game that takes the current position of the hero and the roll (1-6) and returns the new position.
๐ฒ Example:
๐ Explanation:
๐ Steps:
Detailed Example:
3
and the dice roll result is6
, the hero will move 6 spaces twice.move(3, 6)
should return15
.Expected Function:
The function should accept two parameters:
current_position
)roll
)And should return the new position after both moves.
Good luck! ๐ฒ๐ฎ
I had no idea what the heck he was talking about. Whenever I run into this kind of situation, I just look at the test cases. Actually, most of the time, I want to ignore all wording and just go right to the test cases.
What the hell
yes, confusing message for an easy exercise...
Loading more items...