|
Friday mysteries of Solskogen |
| category: parties |
|
|
nosfe code. steel code still unknown.
Code: public Class Nosfe extends FinnishScener implements Scener { public GreatTime party(PartyPlace place) { this.travelTo(place); try { Alcohole salmiakki = new Salmiakki(1, Salmiakki.BOTTLE); while(salmiakki.bottleIsEmpty == false) { salmiakki.drink(); this.feelGreat(); } } catch (PassOutException e) { Tent t = Tent.findRandomTent(); House h = House.findRandomHouse(); this.fallAsleepAt(t); while (this.getFeeling != Nosfe.FEEL_LIKE_MOVING) { this.sleepABit(); this.checkFeeling(); } this.walkTo(h); this.fallAsleepAt(h); while (this.isSleeping()) { this.dreamOfDemos(); } this.walkBackToPartyPlace(); // may take several hours this.addAfterPartyAction("ask pouet what i did"); } return super.party(place); } }
|
|
|
|
Scicco: I'd like a summary of this Scener interface :D |
|
|
|
you're setting a very unpleasant precedent here :D |
|
|
|
:D |
|
|
Fantastic! ;-) Simply hilarious.
On the other hand - you'd probably generate exceptions. You need:
Cellphone c = this.pocketContent;
... and then, somewhere between the sleep-on-tent-loop and the waltTo(h) - add a
Position p = rand(t,h)
c.drop(p)
Or whatever - I'm just a musician :-p |
|
|
|
eagerly waiting what mysteries will revision bring |
|
|
|
nosfe: that depends - are you still running the same code as two years ago? If so, the results ought to be quite predictable :) |
|
|
|
i'm sure i must have some more bugs in the code now |
|
|
|
|