Code Monkey home page Code Monkey logo

world.execute.me.ts's Introduction

world.execute(me);

TypeScript implementation of Mili - world.execute(me);

/**
 * 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);


        
    }
}

world.execute.me.ts's People

Contributors

phucngo2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.