Ad
  • Custom User Avatar
  • Default User Avatar

    Shouldn't '147' also be a win pattern?

  • Custom User Avatar

    There actually is a custom Eq instance for Process.

    Closing.

  • Custom User Avatar

    I think it could be considered cheating for all katas where the difficulty lies in the forbidden words. Or it could be considered that any such kata should forbid networking to begin with.

  • Custom User Avatar

    I quite liked this challenge, got to learn about lexing and manually implement a parser. Feels more real-worldy than the typical numerical challenges that appear in this site.

  • Custom User Avatar

    Not a very hard Kata, though sorting requirements could be made a little clearer.

  • Custom User Avatar

    Well, you can do web requests in many other languages too (probably the easiest in Python). So it's nothing new ;-)

    Though it's only useful if you're using this to make use of a more powerful language (Python and Mathematica, I'm looking at you ;-)). Besides, the time limit is still there, and you'll be adding network latency by this, so it's not going to always work ;-)

    (I guess some people might consider it cheating, but it's not straight out targeting at the test framework so whatever)

  • Custom User Avatar

    So I found out that it's possible to initiate TCP connections(with Rust at least..), and implemented an ad-hoc RPC system where the tested function sends its inputs to my server, which then solves the problem and sends back the result. Would that be considered cheating? I figured you could essentially solve challenges with any language+libraries you wish, requiring only minimal networking code to be submitted to codewars.

  • Default User Avatar

    Interesting Kata, but I think it should be considered as a higher difficulty Kata due.

  • Custom User Avatar

    There seems to be an issue with the haskell test-cases: They assume a certain order within the Tree's elements. While running the code with my PC's stack installation I get the following error:
    expected: Process 1 [Process 124 [],Process 214 [Process 219 []]]
    but got: Process 1 [Process 214 [Process 219 []],Process 124 []]

    Unless there's a custom Eq instance for the tree, at least.. (can't actually test this, since it doesn't compile via the server)

    Secondly, Kata doesn't even compile(server times out), perhaps because I'm using Data.Tree from containers? or maybe it's just a temporary issue

  • Default User Avatar

    I do most of my coding in vim (terminal, not the CW vim mode). It was pretty trivial to convert it

    to turn EVIL DOOR LUCK FOOD into ["EVIL", "DOOR", "LUCK", "FOOD"] in vim just takes

    :s/[A-Z]\+/"&",/g | s/.*/[&]/
    
  • Default User Avatar

    Nice Kata, though I had to do quite some regex to parse all the raw data into something usable.(Or maybe I was just too lazy to type it manually)
    If text parsing is not an objective of this Kata, then I think it would be better if you had provided an object array for "Action of each event upon each state".