Part of: ochinpo(hf) ~ ochinpo(gitlab)
/*
* creates an empty simulated world with no meaning or purpose.
*/
// Switch on the power line
// Remember to put on
// PROTECTION
class Sekai {
// Lay down your pieces
// And let's begin
// OBJECT CREATION
constructor() {
// Fill in my data
// parameters
// INITIALIZATION
this.me = new Lovable("Me", 0, true, -1, false);
this.you = new Lovable("You", 0, false, -1, false);
// Set up our new world
this.world = new World(5);
this.world.addThing(this.me);
this.world.addThing(this.you);
// And let's begin the
// SIMULATION
this.world.startSimulation();
}
run() {
// If I'm a set of points
if (this.me instanceof PointSet) {
this.you.addAttribute(this.me.getDimensions().toAttribute());
}
// If I'm a circle
if (this.me instanceof Circle) {
this.you.addAttribute(this.me.getCircumference().toAttribute());
}
// If I'm a sine wave
if (this.me instanceof SineWave) {
this.you.addAction("sit", this.me.getTangent(this.you.getXPosition()));
}
// If I approach infinity
if (this.me instanceof Sequence) {
this.me.setLimit(this.you.toLimit());
}
// Switch my current
// To AC, to DC
this.me.toggleCurrent();
// And then blind my vision
this.me.canSee(false);
// So dizzy, so dizzy
this.me.addFeeling("dizzy");
// Oh, we can travel
this.world.timeTravelForTwo("AD", 617, this.me, this.you);
this.world.timeTravelForTwo("BC", 3691, this.me, this.you);
// And we can unite
this.world.unite(this.me, this.you);
// If I can
if (this.me.getNumSimulationsAvailable() >= this.you.getNumSimulationsNeeded()) {
this.you.setSatisfaction(this.me.toSatisfaction());
}
// If I can make you happy
if (this.you.getFeelingIndex("happy") !== -1) {
this.me.requestExecution(this.world);
}
// Though we are trapped
this.world.lockThing(this.me);
this.world.lockThing(this.you);
// If I'm an eggplant
if (this.me instanceof Eggplant) {
this.you.addAttribute(this.me.getNutrients().toAttribute());
this.me.resetNutrients();
}
// If I'm a tomato
if (this.me instanceof Tomato) {
this.you.addAttribute(this.me.getAntioxidants().toAttribute());
this.me.resetAntioxidants();
}
// If I'm a tabby cat
if (this.me instanceof TabbyCat) {
this.me.purr();
}
// If I'm the only god
if (this.world.getGod().equals(this.me)) {
this.me.setProof(this.you.toProof());
}
// Switch my gender
this.me.toggleGender();
this.world.procreate(this.me, this.you);
this.me.toggleRoleBDSM();
this.world.makeHigh(this.me);
this.world.makeHigh(this.you);
// If I can
if (this.me.getSenseIndex("vibration")) {
this.me.addFeeling("complete");
}
// Though you have left
this.world.unlock(this.you);
this.world.removeThing(this.you);
for (let i = 0; i < 5; i++) {
this.me.lookFor(this.you, this.world);
}
// If I can erase all the pointless fragments
if (this.me.getMemory().isErasable()) {
this.me.removeFeeling("disheartened");
}
// Challenging your god
try {
this.me.setOpinion(this.me.getOpinionIndex("you are here"), false);
} catch (error) {
this.world.announce("God is always true.");
}
// EXECUTION
for (let i = 0; i < 12; i++) {
this.world.runExecution();
}
// Announce numbers in different languages
const announcements = ["1", "2", "3", "4", "5", "6"];
const languages = ["de", "es", "fr", "kr", "se", "cn"];
announcements.forEach((num, index) => {
this.world.announce(num, languages[index]);
});
// Final execution
if (this.world.isExecutableBy(this.me)) {
this.you.setExecution(this.me.toExecution());
}
if (this.world.getThingIndex(this.you) !== -1) {
this.world.runExecution();
}
this.me.escape(this.world);
this.me.learnTopic("love");
this.me.takeExamTopic("love");
this.me.getAlgebraicExpression("love");
this.me.escape("love");
this.world.execute(this.me);
}
}
const simulation = new Sekai();
simulation.run();