Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Help with algorithm

Name: Anonymous 2011-02-19 9:42

I want to write a bot that will check dubs all day, but can't come with an algorithm - how can you calculate that the next post will be doubles?

Name: Anonymous 2011-02-19 9:47

            parts = line.split('<>')
           
            pc = int(parts[4])
           
            if pc < 20 or pc > 999: continue

            if pc % 111 == 110:
                tripz.append((parts[3], parts[4]))
                break
               
            if (pc % 100 % 11 == 10 or pc % 100 == 99):
                dubz.append((parts[3], parts[4]))

Name: Anonymous 2011-02-19 10:31

sub is-dubz($n) { ?$n % 100 %% 11 }

Name: Anonymous 2011-02-19 11:31

post_number += 1
post_str = str(post_number)
if post_str[-1] == post_str[-2]:
    print "Check 'em"

Name: Anonymous 2011-02-19 11:36

The only dubs I care about are English.

Name: Anonymous 2011-02-19 17:46


if (dub)
    step++;

Name: Anonymous 2011-02-19 18:11

The Japanesese dub is always better.

Name: Anonymous 2011-03-12 6:59

isNextPostDubz = (==1) . length  . group . show . (+1)

Will it compile?

Name: Anonymous 2011-03-12 9:05

BWA-HA-HA-HA. I hope I'm being trolled.
I could write that shit when I was 12.
Or maybe op is not 12 yet?

Name: Anonymous 2011-03-12 10:34

>>9
i am 12 an what is this

Name: Anonymous 2011-03-12 10:47

dubz

Name: Anonymous 2011-03-12 12:26

NO I AM 12

Name: Anonymous 2011-03-12 12:31

>>9
Whoa, really?  I could only write C compilers…

Don't change these.
Name: Email:
Entire Thread Thread List