👨‍💻 dev asses assified assification

development

owly

闇の伝説
Staff member
戦闘 コーダー
@fukurou
Java:
public class TrgArgue {
    public UniqueItemSizeLimitedPriorityQueue commands = new UniqueItemSizeLimitedPriorityQueue();
    public UniqueItemSizeLimitedPriorityQueue contextCommands = new UniqueItemSizeLimitedPriorityQueue();
    public Boolean trgTolerance  = false;
    public int engageCommand(String s1){
        // 0-> no engagement
        // 1-> engaged boolean gate
        // 2-> engaged argument
        if (s1.isEmpty()){return 0;}
        if (contextCommands.contains(s1)){
            trgTolerance = true;
            return 1;
        }
        // * commands.str
        if (trgTolerance && !commands.contains(s1)){
            trgTolerance = false;
            return 0;
        }
        // counter point
        return 2;
    }
    public void disable(){
        // context commands are disabled till next engagement with a command
        trgTolerance = false;
    }
}
 

fukurou

the supreme coder
ADMIN
assmaxed assmaxing assmaxer shit in the ass:
Java:
package AXJava;

public class TrgArgue {
    public UniqueItemSizeLimitedPriorityQueue commands = new UniqueItemSizeLimitedPriorityQueue();
    public UniqueItemSizeLimitedPriorityQueue contextCommands = new UniqueItemSizeLimitedPriorityQueue();
    public Boolean trgTolerance  = false;
    private int counter = 0; // count argues

    public int getCounter() {
        return counter;
    }

    public int engageCommand(String s1){
        // 0-> no engagement
        // 1-> engaged boolean gate
        // 2-> engaged argument
        if (s1.isEmpty()){counter = 0;return 0;}
        if (contextCommands.contains(s1)){
            if(trgTolerance){counter++;}
            trgTolerance = true;
            return 1;
        }
        if (trgTolerance ){
            if (!commands.strContainsResponse(s1)){
                trgTolerance = false;
                counter = 0;
                return 0;
            }else {
                counter ++;
                return 2;
            }
        }
        return 0;
    }
    public void disable(){
        // context commands are disabled till next engagement with a command
        trgTolerance = false;
    }
}
 
Top