Recent content by fukurou

  1. fukurou

    once a night Boolean gate

    import time from datetime import datetime class NightOnceGate: def __init__(self, night_start_hour=21, night_end_hour=6): """ night_start_hour: hour (0-23) night begins, e.g. 21 = 9pm night_end_hour: hour (0-23) night ends, e.g. 6 = 6am Handles wraparound...
  2. fukurou

    tea party

    import random import time class DiTeaParty(Skill): def __init__(self): super().__init__() self.set_skill_type(2) # continuous skill self.toggle = "lets have a tea party" self.party_duration = 300 # 5 minutes total self.responder = Responder("sip"...
  3. fukurou

    tea party

    import random import time class DiTeaParty(Skill): def __init__(self): super().__init__() self.set_skill_type(2) # continuous skill self.toggle = "lets have a tea party" self.sip_min = 20 # seconds self.sip_max = 60 # seconds...
  4. fukurou

    [MEDIA]

  5. fukurou

    [MEDIA]

  6. fukurou

    LivinGrimoire holyC port

    pt4/4 self->ctsSkills[i]->Ghost(self->ctsSkills[i]); self->ctsCount = 0; } U0 Lobe_InOut(Lobe *self, Skill *skill, U8 *ear, U8 *skin, U8 *eye) { skill->Input(skill, ear, skin, eye); if (Skill_PendingAlgorithm(skill)) self->algTriggered = TRUE; Skill_Output(skill...
  7. fukurou

    LivinGrimoire holyC port

    pt3/4 AlgPart *part = self->alg->parts[self->at]; U8 *result = part->Action(part, ear, skin, eye); StrCpy(self->emot, AlgPart_MyName(part)); if (part->Completed(part)) self->incrementAt = TRUE; return result; } return ""; } U0...
  8. fukurou

    LivinGrimoire holyC port

    pt2/4 I64 i, j; for (i = 0; i <= DEFCON_LEVELS; i++) { self->defcon_count[i] = 0; for (j = 0; j < NEURON_QUEUE; j++) self->defcons[i][j] = NULL; } } U0 Neuron_InsertAlg(Neuron *self, I64 priority, Algorithm *alg) { if (priority < 1 || priority > 5) return; if...
  9. fukurou

    LivinGrimoire holyC port

    pt1/4 // LivinGrimoire.HC // HolyC port of LivinGrimoire.py // Runs on TempleOS // OOP replaced with structs + function pointers (composition) // Caps: MAX_SKILLS=16, MAX_SENTENCES=32, MAX_ALG_PARTS=16, NEURON_QUEUE=4 #define MAX_SKILLS 16 #define MAX_SENTENCES 32 #define MAX_ALG_PARTS...
  10. fukurou

    [MEDIA]

  11. fukurou

    [MEDIA]

  12. fukurou

    new site

    https://www.livingrimoire.com/
  13. fukurou

    [MEDIA]

  14. fukurou

    [MEDIA]

  15. fukurou

    [MEDIA]

Top