👨‍💻 dev new attention seeker skill

development

owly

闇の伝説
Staff member
戦闘 コーダー
Code:
TimeAccumulator

if morning:
 ACU++
 if ACU.count>N:
  chirp();ACO.reset() // n = 10
 elif:
  shutup:ACO.reset()

if 1 word and ACU.count>0:
 chirp();ACU--

ResponderV2:
 +q
listen(ear){
if !ear.contains(" ") and !arr.contains(ear) and !filterList.contains(ear):
 q.insert(ear)
}

response(){}
getlearnedResponse(){}
islearnedresponse(s1){}
isresponse(s1){}
contains(s1){}

 

fukurou

the supreme coder
ADMIN
Java:
package AXJava;

public class Responder1Word {
    UniqueItemSizeLimitedPriorityQueue q= new UniqueItemSizeLimitedPriorityQueue();

    public Responder1Word() {
        q.add("chi");
        q.add("chirp");
    }
    public void listen(String ear){
        if (!(ear.contains(" ") || ear.isEmpty())){
            q.add(ear);
        }
    }
    public String getAResponse(){
        return q.getRNDElement();
    }
    public Boolean contains(String ear){
        return q.contains(ear);
    }
}
:s87:
 

owly

闇の伝説
Staff member
戦闘 コーダー

AAAAAAAAAAAAAAAHHH shiiiiieeeet it's on now ! coding party! :s72:
 

fukurou

the supreme coder
ADMIN
Java:
import LivinGrimoire.TimeGate;

public class TimeAccumulator {
    private TimeGate timeGate = new TimeGate(5);
    private int accumulator = 0;
    public void setTick(int tick) {
        timeGate.setPause(tick);
    }

    public TimeAccumulator(int tick) {
        this.timeGate = new TimeGate(tick);
        timeGate.openGate();
    }

    public int getAccumulator() {
        return accumulator;
    }
    public void tick(){
        if (timeGate.isClosed()){
            timeGate.openGate();
            accumulator ++;
        }
    }
    public void reset(){accumulator = 0;}
}
 

fukurou

the supreme coder
ADMIN
Python:
from __future__ import annotations
from LivinGrimoireCoreV2 import *


class TimeAccumulator:
    def __init__(self, tick: int):
        self._timeGate: TimeGate = TimeGate(tick)
        self._accumulator: int = 0
        self._timeGate.openForPauseMinutes()

    def setTick(self, tick: int):
        self._timeGate.setPause(tick)

    def getAccumulator(self) -> int:
        return self._accumulator

    def reset(self):
        self._accumulator = 0

    def tick(self):
        if self._timeGate.isClosed():
            self._timeGate.openForPauseMinutes()
            self._accumulator += 1
 
Top