Earn extra honor and gain new allies!
Honor is earned for each new codewarrior who joins.
Learn more
  • Profile-pic

    juliankolbe, maybe you could make another kata
    where you revenge the King of Woodlands through attacking
    his kingdom.

  • 14909989?v=3

    Not an issue if you've read the descriptions in the first place. The defender object does not have cavalry property:

    var defender = {
        armyHp: int,
        archer: int,
        footSoldier: int,
        artillery: int,
        resources: string, 
        reinforcements: {
          battleValue: x,
          inTime: bool
        }
    }
    
  • 10391803?v=3

    Hey there, I have added it to the description, yeah they were not supposed to have a cavalry as they are sitting inside a castle ;). The objects are exactly the way the are shown in the description :).

  • Profile-pic

    juliankolbe, in the sample test there is no cavalry value
    for the defenders. If you intended it, please write in the instructions,
    there may not be a (troop name) value or something like that.
    If you didn't intend it, please fix it. :)

  • 14909989?v=3
  • 14909989?v=3

    This is just the unlimited knapsack problem, which means it's a duplicate to many existing katas.

  • 10391803?v=3

    Comon lets get it out beta alreadyy

  • 10391803?v=3
  • 15776046?v=3

    I'm not sure if it ever comes out of beta, sounds easy, but a little bit thinking was necessary:-) (so you can see not many solutions at the moment, but more than 275 submits;-))...

  • 10391803?v=3

    Hey @smile67 yeah im having the same problem, nothing is working. Thanks a lot for the feedback, hope its gonna start working soon again, your 4 points surely would be a help in getting this thing out of beta some time this decade :D

  • 15776046?v=3

    @juliankolbe: Saw your response (thanks;-)), but the link doesn't work, can't find your message inside this "Discourse" here - so i answer at the wrong place (codewars is really faulty at the moment, nothing works...). So problem is solved, my solution works and is submitted. But perhaps a new mistake, it's only sometimes visible inside the solution page. Gave you 4 points, but it isn't recognized too. Did it again, but it's not working... Another problem is, that i'm not able to submit a new/other solution - if there is an older one, it's not possible to sumbmit a new one (always a codewars error "...issue...???" appears). It's not only my problem and i think a problem for all katas...

  • 10391803?v=3

    Hey sorry for the late reply, codewars did not send me a notification until now, seems a bit buggy at the moment. Did you figure out what the problem was?

  • 15776046?v=3

    Finished;-)... thanks again! One "helper point" for "myjinxin 8kyu":-)))

  • 15776046?v=3

    Perhaps;-)... It's really short code and i see no problem. It's strange that it sometimes stops with timeout after 2 really simple random tests and sometime after 70 harder tests. I don't know if there is a CW timing problem too...? At the moment i always have CW problems for different things;-)...

    By the way "myjinxin 8 kyu", Honor 2... it's a little bit funny:-)... Hope you are soon back again;-)

  • Profile-pic

    10 fix test+100 random test
    my code run in 323 ms
    maybe you code has some problem or need improve ;-)

  • Loading more items...