previndexinfonext

code guessing, round #104 (completed)

started at ; stage 2 at ; ended at

specification

hear that? it's the very first source-layout we've done! detect your own stride length. submissions can be written in any language, but may you? ...yes, you may.

this is also the very first challenge that does not ask for a full program, but only an expression. it's double the firsts for your buck; code guessing is entering the 21st century! really, we're asking for a set of expressions, since your original expression will be modified.

let me explain. we'll say you submit mycoolsubmission as your expression. it should evaluate to 1. here's the catch: if you remove every other character from it (mcosbiso), it should evaluate to 2, and if you only keep every 3rd character (mosmsn) it should evaluate to 3, and so on. you can continue the pattern as long as you like, anywhere from 1 to the length of your program. but if you go all the way, I'll think you're cool.

your challenge, given nothing, is to evaluate to a number as described above. as any language is allowed and expressions don't have APIs, there is no fixed one.

and DON'T ask me what counts as an expression.

results

  1. πŸ‘‘ haru~ +2 -0 = 2
    1. Makefile_dot_in (was essaie)
    2. Luna (was Makefile_dot_in)
    3. essaie (was Luna)
    4. oleander
    5. seshoumara
  2. Makefile_dot_in +2 -0 = 2
    1. essaie
    2. haru~ (was Luna)
    3. Luna (was oleander)
    4. seshoumara
    5. oleander (was haru~)
  3. essaie +2 -2 = 0
    1. Luna (was Makefile_dot_in)
    2. haru~ (was Luna)
    3. oleander
    4. seshoumara
    5. Makefile_dot_in (was haru~)
  4. oleander +2 -3 = -1
    1. essaie
    2. Luna (was Makefile_dot_in)
    3. haru~ (was Luna)
    4. seshoumara
    5. Makefile_dot_in (was haru~)
  5. Luna +0 -1 = -1
    1. seshoumara +2 -4 = -2
      1. haru~ (was essaie)
      2. essaie (was Makefile_dot_in)
      3. Luna
      4. oleander
      5. Makefile_dot_in (was haru~)

    entries

    you can download all the entries

    entry #1

    written by essaie
    submitted at
    0 likes

    guesses
    comments 0

    post a comment


    rulebreaker.py ASCII text
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    def entry(dave):
        return (lambda dirk:
            (lambda texas:
                (lambda doll, stride: doll(doll, stride)) (
                    (lambda doll, stride: (lambda shrimp:
                        0 if len(shrimp) < len(dave) else
                        stride if shrimp == dave else
                        doll(doll, stride + 1)
                    ) (texas[::stride])), 1
                )
            ) ("""def entry(dave):
        return (lambda dirk:
            (lambda texas:
                (lambda doll, stride: doll(doll, stride)) (
                    (lambda doll, stride: (lambda shrimp:
                        0 if len(shrimp) < len(dave) else
                        stride if shrimp == dave else
                        doll(doll, stride + 1)
                    ) (texas[::stride])), 1
                )
            ) (""" + dirk + """)
        ) (""" + chr(39) * 3 + dirk
               + chr(39) * 3 + ")")
        ) ('''"""def entry(dave):
        return (lambda dirk:
            (lambda texas:
                (lambda doll, stride: doll(doll, stride)) (
                    (lambda doll, stride: (lambda shrimp:
                        0 if len(shrimp) < len(dave) else
                        stride if shrimp == dave else
                        doll(doll, stride + 1)
                    ) (texas[::stride])), 1
                )
            ) (""" + dirk + """)
        ) (""" + chr(39) * 3 + dirk
               + chr(39) * 3 + ")"''')
    

    entry #2

    written by Makefile_dot_in
    submitted at
    0 likes

    guesses
    comments 0

    post a comment


    cg104.bf ASCII text
    1
    +
    

    entry #3

    written by Luna
    submitted at
    0 likes

    guesses
    comments 0

    post a comment


    cg-104.ua Unicode text, UTF-8 text
    1
    2
    3
    4
    5
    6
    7
    8
    # Works up to 7; I didn't find any expression for more than 2 characters that worked up to the number of characters.
    ⌈β¨ͺΓ·βˆšΟ€56Ο„
    # βŒˆΓ·Ο€6
    # ⌈√6
    # βŒˆΟ€
    # ⌈5
    # ⌈6
    # βŒˆΟ„
    

    entry #4

    written by oleander
    submitted at
    0 likes

    guesses
    comments 0

    post a comment


    cg.R ASCII text, with no line terminators
    1
    5-     1      -       1                   -           1                 -           1
    

    entry #5

    written by seshoumara
    submitted at
    0 likes

    guesses
    comments 0

    post a comment


    I_am_almost_cool.dc ASCII text
    1
    A0Zv
    
    output.sh ASCII text
    1
    2
    3
    4
    5
    #!/usr/bin/bash
    
    dc --expression 'A0Zv' -ef
    dc --expression 'AZ' -ef
    dc --expression 'Av' -ef
    

    entry #6

    written by haru~
    submitted at
    0 likes

    guesses
    comments 2
    haru~ known at the time as [cg: author of #6] ΒΆ
    m: 2
    a: {1 2 3 4 5 6 7 8 9 h}
    p:
        h -> 1
        1 -> 1
        2 -> 1
        3 -> 2
        4 -> 3
        5 -> 4
        6 -> 5
        7 -> 6
        8 -> 7
        9 -> 8
    

    death of the author ΒΆ

    im hungry


    post a comment


    ceegee.md ASCII text, with no line terminators
    1
    9HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH