-
-
Save hibiyasleep/519a7bd3bfc2fd4f7d33f3cbf5cdc3bb to your computer and use it in GitHub Desktop.
package goddrinksjava; | |
/** | |
* The program GodDrinksJava implements an application that | |
* creates an empty simulated world with no meaning or purpose. | |
* | |
* @author momocashew | |
* @lyrics hibiyasleep | |
*/ | |
// Switch on the power line | |
// Remember to put on | |
// PROTECTION | |
public class GodDrinksJava { | |
// Lay down your pieces | |
// And let's begin | |
// OBJECT CREATION | |
public static void main(String[] args) { | |
// Fill in my data | |
// parameters | |
// INITIALIZATION | |
Thing me = new Lovable("Me", 0, true, -1, false); | |
Thing you = new Lovable("You", 0, false, -1, false); | |
// Set up our new world | |
World world = new World(5); | |
world.addThing(me); | |
world.addThing(you); | |
// And let's begin the | |
// SIMULATION | |
world.startSimulation(); | |
// If I'm a set of points | |
if(me instanceof PointSet){ | |
// Then I will give you my | |
// DIMENSION | |
you.addAttribute(me.getDimensions().toAttribute()); | |
} | |
// If I'm a circle | |
if(me instanceof Circle){ | |
// Then I will give you my | |
// CIRCUMFERENCE | |
you.addAttribute(me.getCircumference().toAttribute()); | |
} | |
// If I'm a sine wave | |
if(me instanceof SineWave){ | |
// Then you can sit on all my | |
// TANGENTS | |
you.addAction("sit", me.getTangent(you.getXPosition())); | |
} | |
// If I approach infinity | |
if(me instanceof Sequence){ | |
// Then you can be my | |
// LIMITATIONS | |
me.setLimit(you.toLimit()); | |
} | |
// Switch my current | |
// To AC, to DC | |
me.toggleCurrent(); | |
// And then blind my vision | |
me.canSee(false); | |
// So dizzy, so dizzy | |
me.addFeeling("dizzy"); | |
// Oh, we can travel | |
world.timeTravelForTwo("AD", 617, me, you); | |
// To A.D., to B.C. | |
world.timeTravelForTwo("BC", 3691, me, you); | |
// And we can unite | |
world.unite(me, you); | |
// So deeply, so deeply | |
// If I can | |
// If I can give you all the | |
// SIMULATIONS | |
if(me.getNumSimulationsAvailable() >= | |
you.getNumSimulationsNeeded()){ | |
// Then I can | |
// Then I can be your only | |
// SATISFACTION | |
you.setSatisfaction(me.toSatisfaction()); | |
} | |
// If I can make you happy | |
if(you.getFeelingIndex("happy") != -1){ | |
// I will run the | |
// EXECUTION | |
me.requestExecution(world); | |
} | |
// Though we are trapped | |
// In this strange, strange | |
// SIMULATION | |
world.lockThing(me); | |
world.lockThing(you); | |
// If I'm an eggplant | |
if(me instanceof Eggplant){ | |
// Then I will give you my | |
// NUTRIENTS | |
you.addAttribute(me.getNutrients().toAttribute()); | |
me.resetNutrients(); | |
} | |
// If I'm a tomato | |
if(me instanceof Tomato){ | |
// Then I will give you | |
// ANTIOXIDANTS | |
you.addAttribute(me.getAntioxidants().toAttribute()); | |
me.resetAntioxidants(); | |
} | |
// If I'm a tabby cat | |
if(me instanceof TabbyCat){ | |
// Then I will purr for your | |
// ENJOYMENT | |
me.purr(); | |
} | |
// If I'm the only god | |
if(world.getGod().equals(me)){ | |
// Then you're the proof of my | |
// EXISTENCE | |
me.setProof(you.toProof()); | |
} | |
// Switch my gender | |
// To F, to M | |
me.toggleGender(); | |
// And then do whatever | |
// From AM to PM | |
world.procreate(me, you); | |
// Oh, switch my role | |
// To S, to M | |
me.toggleRoleBDSM(); | |
// So we can enter | |
// The trance, the trance | |
world.makeHigh(me); | |
world.makeHigh(you); | |
// If I can | |
// If I can feel your | |
// VIBRATIONS | |
if(me.getSenseIndex("vibration")){ | |
// Then I can | |
// Then I can finally be | |
// COMPLETION | |
me.addFeeling("complete"); | |
} | |
// Though you have left | |
world.unlock(you); | |
world.removeThing(you); | |
// You have left | |
me.lookFor(you, world); | |
// You have left | |
me.lookFor(you, world); | |
// You have left | |
me.lookFor(you, world); | |
// You have left | |
me.lookFor(you, world); | |
// You have left me in | |
me.lookFor(you, world); | |
// ISOLATION | |
// If I can | |
// If I can erase all the pointless | |
// FRAGMENTS | |
if(me.getMemory().isErasable()){ | |
// Then maybe | |
// Then maybe you won't leave me so | |
// DISHEARTENED | |
me.removeFeeling("disheartened"); | |
} | |
// Challenging your god | |
try{ | |
me.setOpinion(me.getOpinionIndex("you are here"), false); | |
} | |
// You have made some | |
catch(IllegalArgumentException e){ | |
// ILLEGAL ARGUMENTS | |
world.announce("God is always true."); | |
} | |
// EXECUTION | |
world.runExecution(); | |
// EXECUTION | |
world.runExecution(); | |
// EXECUTION | |
world.runExecution(); | |
// EXECUTION | |
world.runExecution(); | |
// EXECUTION | |
world.runExecution(); | |
// EXECUTION | |
world.runExecution(); | |
// EXECUTION | |
world.runExecution(); | |
// EXECUTION | |
world.runExecution(); | |
// EXECUTION | |
world.runExecution(); | |
// EXECUTION | |
world.runExecution(); | |
// EXECUTION | |
world.runExecution(); | |
// EXECUTION | |
world.runExecution(); | |
// EIN | |
world.announce("1", "de"); // ein; German | |
// DOS | |
world.announce("2", "es"); // dos; Español | |
// TROIS | |
world.announce("3", "fr"); // trois; French | |
// NE | |
world.announce("4", "kr"); // 넷; Korean | |
// FEM | |
world.announce("5", "se"); // fem; Swedish | |
// LIU | |
world.announce("6", "cn"); // 六; Chinese | |
// EXECUTION | |
world.runExecution(); | |
// If I can | |
// If I can give them all the | |
// EXECUTION | |
if(world.isExecutableBy(me)){ | |
// Then I can | |
// Then I can be your only | |
// EXECUTION | |
you.setExecution(me.toExecution()); | |
} | |
// If I can have you back | |
if(world.getThingIndex(you) != -1){ | |
// I will run the | |
// EXECUTION | |
world.runExecution(); | |
} | |
// Though we are trapped | |
// We are trapped, ah | |
me.escape(world); | |
// I've studied | |
// I've studied how to properly | |
// LO-O-OVE | |
me.learnTopic("love"); | |
// Question me | |
// Question me, I can answer all | |
// LO-O-OVE | |
me.takeExamTopic("love"); | |
// I know the | |
// algebraic expression of | |
// LO-O-OVE | |
me.getAlgebraicExpression("love"); | |
// Though you are free | |
// I am trapped, trapped in | |
// LO-O-OVE | |
me.escape("love"); | |
// EXECUTION | |
world.execute(me); | |
} | |
} |
fougere-mike
commented
Nov 15, 2017
•
wew
good shit
Line 278: me.getAlgebraicExpression("love");
very nice
Amazing
@Element118, fixed, thanks very much and sorry for late
🎉 Great Job.
me.getSenseIndex("vibration")
should ideally be me.getSenseIndex("vibration") != -1
but I think that was wrong even in the original 😐
coder of culture. you have my respect
I will turn this shit to python I swear
here you go https://music.youtube.com/watch?v=OnWktOJHrjQ&feature=share
This is amazing 😍
...by the way, world.execute(me);
is just the beginning... It probably ends here which is quite depressing actually.
The culture is strong in this one
did what i always wanted to do!
awesome
broo haha
Man of culture
Bro, imagine you were looking for this all your life long and you find it.
there we go
🙇
really nice work op!! ><
does it actually run?
holy, nice job
amazing thank you ^^
very nice