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.
Updated to
String[]
. Thanks for paying attention!My point that some people prefere to complite kata with minimum stuff. But input already insist them to use expansions. At other side, you always can easily get dictionary from array, if you want solve it with em.
Anyway, its only my opinon and you made a good translation
Why not to use array of tuples? It seems more native then add Linq, Collections.Generic and Newtonsoft.Json namespaces
Yes, you are right, it is very similar. Unfortunately, I didn't see that kata before.
This comment is hidden because it contains spoiler information about the solution
It is. Only 1, 2 or 3
Anyway, I've expanded the fail message. Seems clearer now.
first "if" will not work because opponent can hit 4
Should I add initial value in fail message? Like
Start: 77. Ending: Player 5 -> 4 Opponent 4 -> 0
? I just don't want make it too easyThis comment is hidden because it contains spoiler information about the solution
Ready. Looks like it's time. Would you mind approving this kata?
This comment is hidden because it contains spoiler information about the solution
Approved.Thank you!
In random block you write log
nail + system_hit + player_hit, nail + system_hit, nail + system_hit, nail
before substracting system hit from the nail, thats why last tic log is
Player: 11 -> 8 Another guy: 8 -> 4
when has to bePlayer: 7 -> 4 Another guy: 4 -> 0
Unfortunatly I wasn't able to fix it myself because
nail - system_hit
gave weird results sometimes:nail + player_hit, nail, nail, nail - system_hit
< Incorrect Result >
Player: 5 -> 3
Another guy: 3 -> 4294967295
max int? C scares me :(Approved, thank you
Loading more items...