Make an application that displays text at random that conforms to the specified regex

后端 未结 11 829
情书的邮戳
情书的邮戳 2021-01-30 05:39

OK, so in the spirit of Code-Golf, I\'m trying out something new here: Code-Bowling.

In golf, you try to get the lowest score (smallest application, mos

11条回答
  •  难免孤独
    2021-01-30 05:53

    For your enjoyment...

    An updated, condensed version... I actually don't see why Length is a requirement. I think it's trivially easy to maintain some of these answers (add a possible greeting, change the existing ones). You really think you'd have an easier time altering this?:

     1) {
            $packet[0] += $x = array_shift($packet);
            echo chr($x);
            play($packet);
        } else echo chr($packet[0]);
    }
    

提交回复
热议问题