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.
Well thought exercise.
My solution passed random tests at the third try with the same code. Maybe this should be fixed.
GavDawg, thank you for your comment! Didn't have time because of work, but I'll train this kata again using info you gave me, thanks! Firefly2002, I just pressed the "attempt" button and at the time didn't know about custom tests in Python :)
marked as resolved
Fixed.
This comment is hidden because it contains spoiler information about the solution
"If there is bread winners, there is bread losers. But you can't toast what isn't real."
hahaha nice kata
Thankee :-)
No worries. Sandro is the name of one of the playable necromancer characters in the game ;P https://vignette.wikia.nocookie.net/mightandmagic/images/5/52/HeroSandroII.jpg/revision/latest?cb=20100308151810&path-prefix=en
Thank you very much @FireFly2002 and @GavDawg!
I also saw it after you mentioned the tuple - I was simply to hasty and overlooked it in the description. Sorry for that!
hi sandro i dont know c++ so maybe this will help you maybe not... the description was written for python and i guess some of the definitions arent explained for c++ very well. the input in c++ would be a monster type tuple such as "typedef tuple<string, int, int, int> MonsterGroup;" where the variables are the type, hitpoints, number, and damage respectively. calling "get<1>([MONSTER])" would then return the hitpoints.
hope this helped
I don't know C++, but it looks like the monster pairs are being stored as a set of tuples within a tuple?
Hi, i wonder if you can say what an input dictonary is ? Is something like struct Monster{string strName; int hitpoints; int Number; int Damge } or a map<string, string >{...}. Hope the question is not to stupid =) Because right now I'm not sure how top get the Information. Just like name=mon1.type or name = mon1[0].
Thank you very much in advance !
well my neck is sore now... but that was fun! nice kata :)
approved :)
Loading more items...