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.
Ok, we have to synchronize our current position.
I don't understand this kata. What are we supposed to do in terms of steps when the number gets bigger?
From the wiki : https://github.com/Codewars/codewars.com/wiki/Honor-&-Ranks
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Ok so maybe this isn't a worthy question but.
How do i iterate through the number, because when i increment the index it gets out of range.
So like number[i+spacer] is out of range.
Thx! Glad to hear it. You can upvote this puzzle if you like it.
I got caught up on the position moving to the right if the number of digits increases for ages! Good puzzle though - definitely one of the better 6 kata ones.
it's not about the description, it's about the code!
And "pokemon hit one by one" is a werid way to tell that the first argument hits first, meaning that in my example, slowpoke should definitely win, as you stated it, tho your reference solution expects pikachu.
=> don't resolve issues if you're not sure you handled them. Correctly.
As @docgunthrop pointed out, there're already several katas about 2 fighters exchanging hits.
Nothing's good.
You could probably just explicitly say something like
A pokemon will always deal at least 1 damage to the opponent, even when their damage is less than or equal to the opponent's defense
.As @Blind4Basics mentioned above, this information should be provided in the same context as the information about calculating damage, rather than as a note at the end. Flow of information (ie. continuity) is something that should be considered when writing your descriptions so as to avoid confusion.
Rewrute description. Is this look better now?
Does all fine now? I check reference, all look good.
So me need change cata or no? If it possible say me hot write more clear in rules. I am bad in English. What i want to say. If pokemon1 have 10 damage, and pokemon2 have 15defence. Pokemon1 in anyway deal 1 garanted damage. 10 - 9 = 1. 10 - 10 = 1, 10 - 100 = 1. But 12 - 10 = 2 and so on. Help me please. Many people say it wrong, but i check my solution many times and all look fine.
Loading more items...