2 added 138 characters in body
source | link

Use OOP. How about create a bunch of classes that handle the base conditions and run random methods to simulate what you are doing.

Get a programer to help.

class COW_METHODS{Get a programmer to help.

class COW_METHODS {

    Function = array('Action1','Action2',....'ActionX');

    function doAction() {
       execute(Function[random(1,5000]);
    }

    function execute(DynamicFunction) {
        exec(DynamicFunction());
    }

    Function Action1() {
        turnRight();
        eatGrass();
    }
    /*  keep adding functions for COW Methods ...  etc  */
    /*  and add classes for conditions inherit them as needed  */
    /*  keep an object to define conditions =  Singleton etc.  */
}

function doAction(){ execute(Function[random(1,5000]); }

function execute(DynamicFunction){ exec(DynamicFunction()); }

Function Action1(){ turnRight(); eatGrass();

} /* keep adding functions for COW Methods ... etc / / and add classes for conditions inherit them as needed / / keep an object to define conditions = Singleton etc. */ }

Use OOP. How about create a bunch of classes that handle the base conditions and run random methods to simulate what you are doing.

Get a programer to help.

class COW_METHODS{

Function = array('Action1','Action2',....'ActionX');

function doAction(){ execute(Function[random(1,5000]); }

function execute(DynamicFunction){ exec(DynamicFunction()); }

Function Action1(){ turnRight(); eatGrass();

} /* keep adding functions for COW Methods ... etc / / and add classes for conditions inherit them as needed / / keep an object to define conditions = Singleton etc. */ }

Use OOP. How about create a bunch of classes that handle the base conditions and run random methods to simulate what you are doing.

Get a programmer to help.

class COW_METHODS {

    Function = array('Action1','Action2',....'ActionX');

    function doAction() {
       execute(Function[random(1,5000]);
    }

    function execute(DynamicFunction) {
        exec(DynamicFunction());
    }

    Function Action1() {
        turnRight();
        eatGrass();
    }
    /*  keep adding functions for COW Methods ...  etc  */
    /*  and add classes for conditions inherit them as needed  */
    /*  keep an object to define conditions =  Singleton etc.  */
}
1
source | link

Use OOP. How about create a bunch of classes that handle the base conditions and run random methods to simulate what you are doing.

Get a programer to help.

class COW_METHODS{

Function = array('Action1','Action2',....'ActionX');

function doAction(){ execute(Function[random(1,5000]); }

function execute(DynamicFunction){ exec(DynamicFunction()); }

Function Action1(){ turnRight(); eatGrass();

} /* keep adding functions for COW Methods ... etc / / and add classes for conditions inherit them as needed / / keep an object to define conditions = Singleton etc. */ }

    Post Made Community Wiki by Dylan Rosario