why is no one online

General discussion about Multiwinia

Moderators: jelco, bert_the_turtle

TheRileyDuo
level1
level1
Posts: 73
Joined: Sun Sep 28, 2008 9:37 am

Postby TheRileyDuo » Tue Oct 14, 2008 1:17 am

Code: Select all

import java.util.*;
/**
*  class name: FixIt
*  @author TheRileyDuo
*  @version 1.0 FINAL
*  @description This class FIXES IT
*/
public class FixIt{
     private boolean isItFixed?;
     private static float volumeLevel;
     public FixIt(){
           isItFixed?=false;
           volumeLevel=0;
           Fixed?();
     }
     public void Fixed?(){
         if(isItFixed?)
            volumeLevel=0;
         else
            FIXIT!();
     }
     public void FIXIT!(){
         Random rand=new Random();
         //Insert fixings right here. Minor bug. Fix it later.
         volumeLevel+=rand.nextFloat();
         Fixed?();
     }
}



Not the best javadocing ever done, but I think it gets the idea across. BTW, watch the SNL weekend update for another inside joke.
Last edited by TheRileyDuo on Tue Oct 14, 2008 2:57 am, edited 1 time in total.
TheRileyDuo
level1
level1
Posts: 73
Joined: Sun Sep 28, 2008 9:37 am

Postby TheRileyDuo » Tue Oct 14, 2008 1:29 am

By the way, all of the spacing was fine in the message box when I made it, but the poster pushed all of the spaces back.
User avatar
NeoThermic
Introversion Staff
Introversion Staff
Posts: 6256
Joined: Sat Mar 02, 2002 10:55 am
Location: ::1
Contact:

Postby NeoThermic » Tue Oct 14, 2008 2:30 am

TheRileyDuo wrote:By the way, all of the spacing was fine in the message box when I made it, but the poster pushed all of the spaces back.


The [code] tag is there for a reason. ;)

NeoThermic
User avatar
Greeba
level3
level3
Posts: 251
Joined: Wed Mar 23, 2005 10:34 pm
Location: London, UK
Contact:

Postby Greeba » Tue Oct 14, 2008 1:08 pm

Nimbus wrote:Jedi mind trick=dedwinia?

You might think that, but I couldn't possibly comment.

[/urquhart]
"Timmy... fetch me my tools..."
SoujiroSeta
level0
Posts: 6
Joined: Sat Mar 25, 2006 7:24 pm
Location: Canada

Postby SoujiroSeta » Fri Oct 17, 2008 4:40 pm

Code: Select all

(define lcar car)
(define (lcdr llist) (force (cdr llist)))
(define (llength llist) (if (not (pair? llist))
                                    0
                                    (+ 1 (llength (lcdr llist)))))

(define vote-intensions (cons 1 (delay vote-intensions)))
(pretty-print `(my-vote is: +,(llength vote-intensions) ^_^Y))

Return to “General”

Who is online

Users browsing this forum: No registered users and 7 guests