Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phucngo2/world.execute.me.ts
TypeScript implementation of Mili - world.execute(me);
https://github.com/phucngo2/world.execute.me.ts
mili simulation typescript
Last synced: about 2 months ago
JSON representation
TypeScript implementation of Mili - world.execute(me);
- Host: GitHub
- URL: https://github.com/phucngo2/world.execute.me.ts
- Owner: phucngo2
- Created: 2022-09-13T17:34:57.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-05T15:03:15.000Z (5 months ago)
- Last Synced: 2024-08-05T17:32:23.134Z (5 months ago)
- Topics: mili, simulation, typescript
- Language: TypeScript
- Homepage: https://youtu.be/ESx_hy1n7HA
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# world.execute(me);
TypeScript implementation of [Mili - world.execute(me);](https://www.youtube.com/watch?v=ESx_hy1n7HA)```typescript
/**
* This program implements an application that
* creates an empty simulated world with no meaning or purpose.
*
* @author Ngô Bắp
*/// Switch on the power line
// Remember to put on
// PROTECTION
export default class GodDrinksTypeScript {// Lay down your pieces
// And let's begin
// OBJECT CREATION
public static main(): void {// Fill in my data
// parameters
// INITIALIZATION
const me: Thing = new Lovable("Me", 0, true, -1, false);
const you: Thing = new Lovable("You", 0, false, -1, false);// Set up our new world
const 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().deepCompare(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);
} catch (e: unknown) {
if (e instanceof IllegalArgumentException) {
// You have made some
// 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);
}
}
```