Search results

  1. fukurou

    nappy code

    class DiEvent(Skill): def __init__(self): super().__init__() self.event_hour = 19 # 7 PM self._claimed_diapered = False self._reminder_attempts = 0 self._refusal_count = 0 self._last_reminder_time = 0 self._last_refusal_time = 0...
  2. fukurou

    nappy code

  3. fukurou

    nappy code

    last working new ver: class DiEvent(Skill): def __init__(self): super().__init__() self.event_hour = 19 # 7 PM self._claimed_diapered = False self._reminder_attempts = 0 self._last_reminder_time = 0 self._max_attempts = 3 # Max reminders per...
  4. fukurou

    nappy code

    old ver: class DiEvent(Skill): def __init__(self): super().__init__() self.event_hour: int = 19 self._e = False self.declarations = UniqueResponder("put on your nappy", "it is diaper time my little bed wetter","put on your diaper", "diaper your butt so you do...
  5. fukurou

    nappy code

    import time class DiEvent(Skill): def __init__(self): super().__init__() self.event_hour = 19 # 19:00 = 7 PM self._claimed_diapered = False self._reminder_attempts = 0 self._last_reminder_time = 0 self._max_attempts = 3 # Avoid infinite...
  6. fukurou

    shut off skill

    import sys class DiShutOff(Skill): def __init__(self): super().__init__() # Call the parent class constructor def input(self, ear, skin, eye): if ear == "shut it down": print("Shutting down...") # Optional confirmation message sys.exit() #...
  7. fukurou

    shut off skill

    import sys print("I'm outta here!") sys.exit()
  8. fukurou

    [MEDIA]

  9. fukurou

    cts ports

    var algTriggered: Bool = false var ctsSkills: [Skill] = [] // continuous skills
  10. fukurou

    [MEDIA]

  11. fukurou

    👨‍💻 dev F sharp port

    type DiHelloWorld() = let baseSkill = Skill(None) member this.AsSkill() : Skill = baseSkill // Exposes `baseSkill` properly member this.Input(ear: string, skin: string, eye: string) = match ear with | "hello" -> baseSkill.SetSimpleAlg(["hello world"]) | _ ->...
  12. fukurou

    👨‍💻 dev F sharp port

    type DiSysOut() = let baseSkill = Skill(None) // Composing Skill instead of inheriting member this.Input(ear: string, skin: string, eye: string) = if ear <> "" && not (ear.Contains("#")) then printfn "%s" ear
  13. fukurou

    👨‍💻 dev F sharp port

    type Brain() = let mutable logicChobit = Chobits() let mutable hardwareChobit = Chobits() let mutable ear = Chobits() let mutable skin = Chobits() let mutable eye = Chobits() let mutable emotion = "" let mutable logicChobitOutput = "" do let kokoro =...
  14. fukurou

    👨‍💻 dev F sharp port

    type Chobits() = let mutable fusion = Fusion() let mutable noiron = Neuron() let mutable kokoro = Kokoro(AbsDictionaryDB()) let mutable isThinking = false let mutable algTriggered = false let dClasses = ResizeArray<Skill>() let awareSkills = ResizeArray<Skill>()...
  15. fukurou

    👨‍💻 dev F sharp port

    kokoro cls update: type Kokoro(initialGrimoireMemento: AbsDictionaryDB) = let mutable emot = "" let mutable grimoireMemento = initialGrimoireMemento let toHeart = Dictionary<string, string>() member this.Emot with get() = emot and set(value) = emot <- value...
  16. fukurou

    👨‍💻 dev F sharp port

    type Cerabellum() = let mutable fin = 0 let mutable at = 0 let mutable incrementAt = false let mutable alg: Algorithm option = None let mutable isActive = false let mutable emot = "" // Advance in algorithm member this.AdvanceInAlg() = if incrementAt then...
  17. fukurou

    👨‍💻 dev F sharp port

    type Skill(initialKokoro: Kokoro option) = let mutable kokoro = initialKokoro let mutable outAlg: Algorithm option = None let mutable outpAlgPriority = -1 // Getter and Setter for Kokoro member this.Kokoro with get() = kokoro and set(value) = kokoro <- value...
  18. fukurou

    👨‍💻 dev F sharp port

    type Neuron() = let defcons = Dictionary<int, ResizeArray<Algorithm>>() do // Initialize the dictionary with priority levels for i in 1 .. 5 do defcons.Add(i, ResizeArray<Algorithm>()) member this.InsertAlg(priority: int, alg: Algorithm) = if priority >...
  19. fukurou

    👨‍💻 dev F sharp port

    // Define the Kokoro type type Kokoro(grimoireMemento: AbsDictionaryDB) = let mutable emot = "" let toHeart = Dictionary<string, string>() member this.Emot with get() = emot and set(value) = emot <- value member this.GrimoireMemento = grimoireMemento member...
  20. fukurou

    👨‍💻 dev F sharp port

    type Algorithm(algParts: IMutatable list) = member this.AlgParts = algParts member this.Size = List.length algParts // Create an instance of APVerbatim let mutatableInstance = APVerbatim(["Test Sentence"]) :> IMutatable // Now it can be passed to Algorithm let algInstance =...
Top