Ad
  • Custom User Avatar

    Great kata. Big thanks and also for identifying what was wrong with my test results to help identify what was wrong with my code.

  • Custom User Avatar

    ok thanks

  • Custom User Avatar

    Please, post this in that kata's Discourse, not here.

  • Custom User Avatar

    i am very new to Codewars. Hope this question is appropriate for the forum.
    I ran the Attempt test cases for The Hunger Games – Foxes and Chickens using Java.

    For Random Test 1 Here is my result before/after (farm/farm2)
    followed by the Before/After from test case.
    //farm = C....C.C[..CCC..C.....C..CCCC.CC.CC....C.CCF..F.CCC..CCC.C.F...CC.C.....F..C.CCF..C....C..C..CCC.]
    //farm2= ........[..................................F..F............F............F......F.................]
    //Before:C....C.C[..CCC..C.....C..CCCC.CC.CC....C.CCF..F.CCC..CCC.C.F...CC.C.....F..C.CCF..C....C..C..CCC.]
    //After: C....C.C[..................................F..F............F............F......F.................]
    the After includes the "C"'s outside the brackets which to my understanding should be "."'s correct?

    For onlyChickens test case here is my before/after log followed by the test case results.
    farm =.C..[C.]..C....[C]..[C..]
    farm2=....[C.].......[C]..[C..]
    expected:<.[C..[C.]..C]....[C]..[C..]>
    but was:<.[...[C.]...]....[C]..[C..]>
    my result seems ok and the test case result has unmatched [ ]'s

    appreciate the help to clarify. Thanks