Page 9 of 12 FirstFirst ... 7891011 ... LastLast
Results 81 to 90 of 119

Thread: The Mxied-Up Ltteres Gmae

  1. #81
    Join Date
    Apr 2009
    Beans
    136

    Re: The Mxied-Up Ltteres Gmae

    Lol oh wiat
    To the world, you may be one person, but to a person, you may be the world...

  2. #82
    Join Date
    Jul 2007
    Location
    The Shire, Canada
    Beans
    Hidden!

    Re: The Mxied-Up Ltteres Gmae

    Quote Originally Posted by calvinps View Post
    Snglie lttres are siglnie ltetrs - taht's it.
    But why? I can mix one up, can I not?

    But why? I can mix one up, can I not?
    Another round of Ubuntu for my friends here!
    Fighting to bring Pink back to The Pink Ponies archive.
    DELETE INSANITY!

  3. #83
    Join Date
    Feb 2007
    Beans
    521
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: The Mxied-Up Ltteres Gmae

    Quote Originally Posted by lukjad007 View Post
    But why? I can mix one up, can I not?

    But why? I can mix one up, can I not?
    *Deeetld txet*

    EIDT: Oh, I get it now.
    Last edited by spupy; April 26th, 2009 at 06:54 PM. Reason: Tpyo
    make install - not war!

    Oh hai!

  4. #84
    Join Date
    Oct 2007
    Location
    Earth
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: The Mxied-Up Ltteres Gmae

    lol

    wlel, wdors taht hvae olny 1, 2, or 3 ltertes arne't mxied up.

    Can smoeone taht knwos phyotn uatpde tihs sirpct so taht it d'osent lveae any wdros "unuemixd" or at lsaet kepes the fsirt and lsat leertts of ecah
    wrod in tiehr onrigail ltoaicons (rmianeing as the fsirt and lsat lterets atfer mxiing up the ohetr letetrs)?

    hree it is:

    Code:
    #!/usr/bin/python
    # -*- coding: utf-8 -*-
    
    import random
    
    def Mixup(word):
        if len(word) < 4:
            return word
        chars = [None] * (len(word) - 2)
        positions = range(len(word) - 2)
        for char in word[1:-1]:
            pos = random.choice(positions)
            chars[pos] = char
            positions.remove(pos)
        return word[0] + "".join(chars) + word[-1]
    
    try:
        while True:
            print " ".join([Mixup(word) for word in raw_input().split()])
    except (EOFError, KeyboardInterrupt):
        pass

  5. #85

    Re: The Mxied-Up Ltteres Gmae

    Quote Originally Posted by Th3Professor View Post
    lol

    wlel, wdors taht hvae olny 1, 2, or 3 ltertes arne't mxied up.

    Can smoeone taht knwos phyotn uatpde tihs sirpct so taht it d'osent lveae any wdros "unuemixd" or at lsaet kepes the fsirt and lsat leertts of ecah
    wrod in tiehr onrigail ltoaicons (rmianeing as the fsirt and lsat lterets atfer mxiing up the ohetr letetrs)?

    hree it is:

    Code:
    #!/usr/bin/python
    # -*- coding: utf-8 -*-
    
    import random
    
    def Mixup(word):
        if len(word) < 4:
            return word
        chars = [None] * (len(word) - 2)
        positions = range(len(word) - 2)
        for char in word[1:-1]:
            pos = random.choice(positions)
            chars[pos] = char
            positions.remove(pos)
        return word[0] + "".join(chars) + word[-1]
    
    try:
        while True:
            print " ".join([Mixup(word) for word in raw_input().split()])
    except (EOFError, KeyboardInterrupt):
        pass
    Taht srcpit dno't wrok. I tierd it. I dno't konw mcuh pthoyn aywanyz
    Attached Files Attached Files

  6. #86
    Join Date
    Oct 2007
    Location
    Earth
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: The Mxied-Up Ltteres Gmae

    Quote Originally Posted by calvinps View Post
    Taht srcpit dno't wrok. I tierd it. I dno't konw mcuh pthoyn aywanyz
    it wrkos:

    [mixed-up]
    Code:
    ~$: chmod +x filename.py
    ~$: ./filename.py
    [enter you text here and press enter]
    [it prints below scrambled/mixed up]
    [/mixed-up]

  7. #87

    Talking Re: The Mxied-Up Ltteres Gmae

    Ah! I teird it but it dind't mix up wrdos taht hvae fuor lttres.

    EIDT: I dno't tnihk taht it wulod wrok wtih fvie or mroe ltetrs as wlel.
    Last edited by calvinps; April 27th, 2009 at 01:35 PM.

  8. #88

    Re: The Mxied-Up Ltteres Gmae

    bmup

  9. #89
    Join Date
    Oct 2007
    Location
    Earth
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: The Mxied-Up Ltteres Gmae

    Quote Originally Posted by calvinps View Post
    Ah! I teird it but it dind't mix up wrdos taht hvae fuor lttres.

    EIDT: I dno't tnihk taht it wulod wrok wtih fvie or mroe ltetrs as wlel.
    ...yep tah'ts why i pstoed tihs:

    Quote Originally Posted by Th3Professor View Post
    lol

    wlel, wdors taht hvae olny 1, 2, or 3 ltertes arne't mxied up.

    Can smoeone taht knwos phyotn uatpde tihs sirpct so taht it d'osent lveae any wdros "unuemixd" or at lsaet kepes the fsirt and lsat leertts of ecah
    wrod in tiehr onrigail ltoaicons (rmianeing as the fsirt and lsat lterets atfer mxiing up the ohetr letetrs)?

    hree it is:

    Code:
    #!/usr/bin/python
    # -*- coding: utf-8 -*-
    
    import random
    
    def Mixup(word):
        if len(word) < 4:
            return word
        chars = [None] * (len(word) - 2)
        positions = range(len(word) - 2)
        for char in word[1:-1]:
            pos = random.choice(positions)
            chars[pos] = char
            positions.remove(pos)
        return word[0] + "".join(chars) + word[-1]
    
    try:
        while True:
            print " ".join([Mixup(word) for word in raw_input().split()])
    except (EOFError, KeyboardInterrupt):
        pass

  10. #90
    Join Date
    Oct 2007
    Location
    Earth
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: The Mxied-Up Ltteres Gmae

    wut

Page 9 of 12 FirstFirst ... 7891011 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •