This site requires JavaScript, please enable it in your browser!
Greenfoot back
cellostar47
cellostar47 wrote ...

2014/1/28

CONTEST!!!!

1
2
cellostar47 cellostar47

2014/1/28

#
I am developing a contest to see who can create the longest code to do the most useless thing ever... Here are the rules and starter code. Make sure it goes into a subclass of World called world.
import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class world here.
 * 
 * @author  (your name here) 
 * @version (date of submission)
 */
public class world extends World
{
    //You may create as many variables as you want...
    /**
     * Welcome to the World class! Here is where all of your code will go.
     * Your code can do anything, except the end result must return in the terminal "useless. just useless."
     * 
     * This will be scored based on how elaborate the code is, and on how many steps it goes through to print the
     * above phrase. Lines of code with JUST comments will NOT be considered. You may not create other classes,
     * but you may create variables or arrays, lists, etc. NOTE: This code MUST be able to run in other compilers,
     * so act() and other methods defined in World or Actor will not be allowed. You may import other packages, but
     * leave comments so others can know how to use them (inputs, etc.).
     * 
     * Submit your entry by FEBRURARY 8th at 11:59 pm STANDARD EST under the appropriate forum on Greenfoot.org.
     * DO NOT POST THIS TO THE GREENFOOT GALLERY- I WILL NOT LOOK THERE!!!!
     * 
     * Have fun and enjoy!
     * If you have questions, email me at cellostar47@gmail.com!
     * -Cellostar47
     * 
     */
    public world()
    {    
        super(600, 400, 1); 
    }
    public void firstMethod(){       //This is the method I will invoke to run your code.
        //Code.....
    }
}
ENJOY!! LEAVE SUBMISSIONS BELOW (copy/paste your code)!!!
danpost danpost

2014/1/28

#
You should stipulate that all the code must indeed do something toward the end result. In other words, something like this would not be allowed:
public void secondMethod()
{
    int a = 0;
    int b = 1;
    int c = 2;
    int sum = a + b + c;
}
where calling this method is more than useless (it is just dumb). All one would then have to do is call this method repeatedly a million or so times.
cellostar47 cellostar47

2014/1/31

#
In response to your post danpost, yes, someone could just call this a million times. However, the winner will be chosen by whose code is longest and only prints the result once.
danpost danpost

2014/1/31

#
@cellostar47, I do not think you get my point. The method I gave does absolutely nothing and could be called virtually any number of times, after which the displaying of the text could be done (once) and the scenario stopped.
cellostar47 cellostar47

2014/1/31

#
RULE UPDATE! As danpost pointed out, ALL CODE MUST CAUSE SOMETHING TO HAPPEN. USELESS CODE WILL NOT BE CONSIDERED!
Kartoffelbrot Kartoffelbrot

2014/1/31

#
Ok this sounds very funny. But can you define any aim that the code should do?
lordhershey lordhershey

2014/1/31

#
Will this board let you dump 64K worth of routine in a single post?
Kartoffelbrot Kartoffelbrot

2014/1/31

#
Or sry didn't read carefully.
cellostar47 cellostar47

2014/1/31

#
Lordhershey, If you need to, email me the code file.
danpost danpost

2014/2/1

#
@cellostar47, please reply that you got my email.
danpost danpost

2014/2/12

#
So, what are the results of this contest?
Entity1037 Entity1037

2014/2/12

#
I'm curious: what is the length of the code judged by? Characters, lines, compilation data.....??
danpost danpost

2014/2/12

#
I would assume it would be executable lines of code. I could be wrong, but I think I was the only entry. I had almost 4300 executable lines of code.
lordhershey lordhershey

2014/2/12

#
Oh, it totally slipped my brain. Had a few rush projects at work and the days just flew by. :/
danpost danpost

2014/2/12

#
@lordhershey, you think you could have got close, or even exceeded, my close to 128K of code? (you mentioned 64k in a previous post)
There are more replies on the next page.
1
2