Make a program

For all your silly time-killing forum games.

Moderators: jestingrabbit, Moderators General, Prelates

Make a program

Postby InkL0sed » Sun Apr 19, 2009 3:19 am UTC

Alright, first post on xkcd. I've lurked a few times, but this forum is intimidating! Anyways, I had a game idea that would only work at a place as nerdy as here, so here goes:

Make a program line by line with the community, in Python (just because you can say a lot in one line and you don't have to worry about curly-braces and whatnot).

That's all. No rules. Anything goes.

So, the first line of code is:
Code: Select all
import random
User avatar
InkL0sed
 
Posts: 205
Joined: Wed Sep 10, 2008 3:46 am UTC

Re: Make a program

Postby MarcyMarc » Sun Apr 19, 2009 4:46 pm UTC

Code: Select all
END
marcYɔɹɐɯ

Image
User avatar
MarcyMarc
 
Posts: 28
Joined: Sun Jan 04, 2009 7:26 pm UTC
Location: New Jersey

Re: Make a program

Postby InkL0sed » Sun Apr 19, 2009 6:14 pm UTC

not funny :(
User avatar
InkL0sed
 
Posts: 205
Joined: Wed Sep 10, 2008 3:46 am UTC

Re: Make a program

Postby tina-mat » Sun Apr 19, 2009 6:45 pm UTC

Code: Select all
a = random.randint(1,365)
Maybe a fool that neglects the lilies of FG.
poxic wrote:Y'know, tina-mat, I hadn't realised until today that your avatar was a stabby little girl. I just thought she was wanking her ponytails.
Box Boy wrote:tina-mat is my lord and master.
User avatar
tina-mat
 
Posts: 53
Joined: Mon Jan 12, 2009 3:35 pm UTC
Location: No longer on the Internets

Re: Make a program

Postby InkL0sed » Sun Apr 19, 2009 11:48 pm UTC

Code: Select all
import random
a = random.randint(1,365)
class Year:
User avatar
InkL0sed
 
Posts: 205
Joined: Wed Sep 10, 2008 3:46 am UTC

Re: Make a program

Postby Kaeyn » Mon Apr 20, 2009 7:14 am UTC

Code: Select all
import random
a = random.randint(1,365)
class Year:
if class_Year = 1963:
Kaeyn
 
Posts: 66
Joined: Wed Jan 21, 2009 6:50 am UTC

Re: Make a program

Postby tina-mat » Mon Apr 20, 2009 12:31 pm UTC

Kaeyn wrote:
Code: Select all
import random
a = random.randint(1,365)
class Year:
if class_Year = 1963:
Syntax error.

Code: Select all
import random
a = random.randint(1,365)
class Year:
    def __init__(self, day):
Maybe a fool that neglects the lilies of FG.
poxic wrote:Y'know, tina-mat, I hadn't realised until today that your avatar was a stabby little girl. I just thought she was wanking her ponytails.
Box Boy wrote:tina-mat is my lord and master.
User avatar
tina-mat
 
Posts: 53
Joined: Mon Jan 12, 2009 3:35 pm UTC
Location: No longer on the Internets

Re: Make a program

Postby InkL0sed » Tue Apr 21, 2009 12:58 am UTC

Code: Select all
import random
a = random.randint(1,365)
class Year:
    def __init__(self, day):
        print "the ",day,"th day of the year 2008 was ",self.get_day_name(day)
User avatar
InkL0sed
 
Posts: 205
Joined: Wed Sep 10, 2008 3:46 am UTC

Re: Make a program

Postby Levi » Tue Apr 21, 2009 1:43 am UTC

Code: Select all
import random  # Imports module for generating random numbers
a = random.randint(1,365)  # Generates a random number
class Year:  # Creates the class "Year"
    def __init__(self, day):
        print "the ",day,"th day of the year 2008 was ",self.get_day_name(day)  # Prints a date (will not always use proper grammar)


Come on, guys. Write comments.
User avatar
Levi
 
Posts: 1296
Joined: Tue Oct 14, 2008 1:12 am UTC

Re: Make a program

Postby InkL0sed » Tue Apr 21, 2009 2:27 am UTC

Psssshht. Not like it's gonna make sense anyway :P
User avatar
InkL0sed
 
Posts: 205
Joined: Wed Sep 10, 2008 3:46 am UTC

Re: Make a program

Postby Kromix » Wed Apr 20, 2011 1:04 pm UTC

[quote="Levi"]
Code: Select all
import random  # Imports module for generating random numbers
a = random.randint(1,365)  # Generates a random number
class Year:  # Creates the class "Year"
    def __init__(self, day):
        print "the ",day,"th day of the year 2008 was ",self.get_day_name(day)  # Prints a date (will not always use proper grammar)
END

lawl
Image
Click Me! <---- Click There! :)
Spoiler:
Image
User avatar
Kromix
 
Posts: 289
Joined: Thu Mar 25, 2010 7:26 pm UTC
Location: DFW, Great State of Texas

Re: Make a program

Postby cjdrum » Wed Apr 20, 2011 2:51 pm UTC

Code: Select all
import random  # Imports module for generating random numbers
a = random.randint(1,365)  # Generates a random number
class Year:  # Creates the class "Year"
    def __init__(self, day):
        print "the ",day,"th day of the year 2008 was ",self.get_day_name(day)  # Prints a date (will not always use proper grammar)
        print "Please excuse any incorrect grammar, here - we're working on it!" # I could fix it if we could input lines anywhere...
END
:shock:
User avatar
cjdrum
 
Posts: 112
Joined: Sun Dec 12, 2010 4:51 am UTC
Location: BACK

Re: Make a program

Postby eggdudeguy » Wed Apr 20, 2011 4:03 pm UTC

Code: Select all
import random  # Imports module for generating random numbers
a = random.randint(1,365)  # Generates a random number
class Year:  # Creates the class "Year"
    def __init__(self, day):
        while 1 == 1:
                print "the ",day,"th day of the year 2008 was ",self.get_day_name(day)  # Prints a date (will not always use proper grammar)
                print "Please excuse any incorrect grammar, here - we're working on it!" # I could fix it if we could input lines anywhere...
END


LOLOLOLOLOL.
KrazyerKate wrote:While it's probably the strangest sounding advice I will ever give, we need to stay focused on Hardcore Pornography in order to be successful.


I have a Blog and I make Games. I also have a big multiplayer game in the works (coming soonish!).
User avatar
eggdudeguy
 
Posts: 9
Joined: Sun Jan 10, 2010 3:24 am UTC

Re: Make a program

Postby Phrozt » Wed Apr 20, 2011 7:49 pm UTC

Code: Select all
import random  # Imports module for generating random numbers
a = random.randint(1,365)  # Generates a random number
class Year:  # Creates the class "Year"
    def __init__(self, day):
        #while 1 == 1:
                print "the ",day,"th day of the year 2008 was ",self.get_day_name(day)  # Prints a date (will not always use proper grammar)
                print "Please excuse any incorrect grammar, here - we're working on it!" # I could fix it if we could input lines anywhere...
END
User avatar
Phrozt
 
Posts: 466
Joined: Thu Nov 20, 2008 9:27 pm UTC


Return to Forum Games

Who is online

Users browsing this forum: No registered users and 3 guests