battle programmers alliance
Would you like to react to this message? Create an account in a few clicks or log in to continue.


battle programming a forum for elite programmers with extreme will power to sharpen theire skills
 
HomeSearchRegisterLog in
 

 DIDirty skill

Go down 
AuthorMessage
Moti Barski
super
super
Moti Barski

Posts : 464
Join date : 2011-08-02

DIDirty skill Empty
PostSubject: DIDirty skill   DIDirty skill EmptyMon Dec 09, 2019 11:16 am

DIDirty skill 3iv9kq

made this to test mutation of actions within algorithms, and to do other stuff ¯_(ツ)_/¯

APFilth1.java :

Code:
package chobit;

public class APFilth1 extends AbsAlgPart implements Mutatable{
 Boolean mode = false; // manual
 final int PAUSELIM = 3;
 final int MANUALLIM = 5;
 final int AUTOLIM = 3;
 int countDown = MANUALLIM;
 int moanPause = 0;
 Boolean isCompleted = false;
 enumFail failure = enumFail.ok;
 int CountDownLatch;
 String myMoan = "make a creamy";
 @Override
 public String action(String ear, String skin, String eye) {
 if (countDown < 1) {
 isCompleted = true;
 if (!mode) {
 this.failure = enumFail.fail;
 isCompleted = false;
 return "finished";
 }
 }
 switch (ear) {
 case "can i fuck you":
 return "no you may not fuck me";
 case "auto":
 countDown = AUTOLIM;
 mode = true;
 break;
 case "manual":
 countDown = MANUALLIM;
 mode = false;
 break;
 case "ok":
 this.isCompleted = true;
 return "i love you";// *finisher
 case "continue":
 case "again":
 countDown = (!mode) ? MANUALLIM : AUTOLIM;
 default:
 moanPause--;
 if (moanPause < 1) {
 moanPause = PAUSELIM;
 countDown--;
 return myMoan;
 }
 break;
 }
 // continue on gyro input
 if (skin.contains("shake")) {
 countDown = (mode) ? MANUALLIM : AUTOLIM;
 }
 return "";
 }

 @Override
 public Boolean itemize() {
 // TODO Auto-generated method stub
 return false;
 }

 @Override
 public enumFail failure(String input) {
 // TODO Auto-generated method stub
 return this.failure;
 }

 @Override
 public Boolean completed() {
 // TODO Auto-generated method stub
 return this.isCompleted;
 }

 @Override
 public AbsAlgPart clone() {
 // TODO Auto-generated method stub
 return new APFilth1();
 }
 @Override
 public int getMutationLimit() {
 // TODO Auto-generated method stub
 return 1;
 }

 @Override
 public AbsAlgPart mutation() {
 // TODO Auto-generated method stub
 return new APFilth2();
 }
}

APFilth2.java :

Code:
package chobit;

public class APFilth2 extends AbsAlgPart implements Mutatable {
   Boolean mode = false; // manual
   final int PAUSELIM = 3;
   final int MANUALLIM = 5;
   final int AUTOLIM = 3;
   int countDown = MANUALLIM;
   int moanPause = 0;
   Boolean isCompleted = false;
   enumFail failure = enumFail.ok;
   int CountDownLatch;
   String myMoan = "lick my feet";

   @Override
   public String action(String ear, String skin, String eye) {
      if (countDown < 1) {
         isCompleted = true;
         if (!mode) {
            this.failure = enumFail.fail;
            isCompleted = false;
            return "finished";
         }
      }
      switch (ear) {
      case "can i fuck you":
         return "no you may not fuck me";
      case "auto":
         countDown = AUTOLIM;
         mode = true;
         break;
      case "manual":
         countDown = MANUALLIM;
         mode = false;
         break;
      case "ok":
         this.isCompleted = true;
         return "i love you";// *finisher
      case "continue":
      case "again":
         countDown = (!mode) ? MANUALLIM : AUTOLIM;
      default:
         moanPause--;
         if (moanPause < 1) {
            moanPause = PAUSELIM;
            countDown--;
            return myMoan;
         }
         break;
      }
      // continue on gyro input
      if (skin.contains("shake")) {
         countDown = (mode) ? MANUALLIM : AUTOLIM;
      }
      return "";
   }

   @Override
   public Boolean itemize() {
      // TODO Auto-generated method stub
      return false;
   }

   @Override
   public enumFail failure(String input) {
      // TODO Auto-generated method stub
      return this.failure;
   }

   @Override
   public Boolean completed() {
      // TODO Auto-generated method stub
      return this.isCompleted;
   }

   @Override
   public AbsAlgPart clone() {
      // TODO Auto-generated method stub
      return new APFilth2();
   }

   @Override
   public int getMutationLimit() {
      // TODO Auto-generated method stub
      return 1;
   }

   @Override
   public AbsAlgPart mutation() {
      // TODO Auto-generated method stub
      return new APFilth1();
   }
}

sweet

_________________
MB over and out emp it up


Last edited by Moti Barski on Sat Dec 14, 2019 8:14 am; edited 1 time in total
Back to top Go down
Moti Barski
super
super
Moti Barski

Posts : 464
Join date : 2011-08-02

DIDirty skill Empty
PostSubject: Re: DIDirty skill   DIDirty skill EmptyMon Dec 09, 2019 11:59 am

DIDirty

Code:
package chobit;

import java.util.ArrayList;

public class DIDirty extends DISkill {
   private Boolean exeAlg = false;

   public DIDirty(Kokoro kokoro) {
      super(kokoro);
      // TODO Auto-generated constructor stub
   }

   @Override
   public void input(String ear, String skin, String eye) {
      if (ear.contains("horny")) {
         this.exeAlg = true;
         this.setSentAlg(true);
      }
   }

   @Override
   public void output(Neuron noiron) {
      if (this.exeAlg) {
         AbsAlgPart AP1 = new Chi(this.kokoro, this.getClass().getSimpleName(), new APSay(1, "cum toilet"));
         AbsAlgPart AP2 = new Chi(this.kokoro, this.getClass().getSimpleName(), new APFilth1());
         String representation = "dirty";
         ArrayList<AbsAlgPart> algParts1 = new ArrayList<>();
         algParts1.add(AP1);
         algParts1.add(AP2);
         Algorithm algorithm = new Algorithm("dirty", representation, algParts1);
         noiron.algParts.add(algorithm);
         exeAlg = false;
      }
   }
}

_________________
MB over and out emp it up
Back to top Go down
Moti Barski
super
super
Moti Barski

Posts : 464
Join date : 2011-08-02

DIDirty skill Empty
PostSubject: Re: DIDirty skill   DIDirty skill EmptyTue Dec 10, 2019 6:04 pm


_________________
MB over and out emp it up
Back to top Go down
 
DIDirty skill
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
battle programmers alliance :: battle programming alliance :: the LivinGrimoire-
Jump to: