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

battle programmers allianceLog in

the LivinGrimoire Artificial General Intelligence software design pattern forum

LivinGrimoire coderpunk log

power_settings_newLogin to reply
2 posters

descriptionLivinGrimoire coderpunk log - Page 2 EmptyRe: LivinGrimoire coderpunk log

more_horiz


EventChat ported (6 PLs)

descriptionLivinGrimoire coderpunk log - Page 2 EmptyRe: LivinGrimoire coderpunk log

more_horiz
DiAware refactored to AHAware.

the skill can remove skills and restore all skills removed,
hence it is an AI Hormone. according to the LivinGrimoire naming convention:
AI Hormone skill names start with AH.

the update has been applied to the python version.

descriptionLivinGrimoire coderpunk log - Page 2 EmptyRe: LivinGrimoire coderpunk log

more_horiz
Eureka! The Abandoned Whiteboard Discovery

I recently stumbled upon an abandoned whiteboard, and let me tell you, it's been a game-changer for my coding sessions. 🖥💡

Why I Love It:
  • Visual Clarity: Mapping out complex algorithms and data structures has never been easier.
  • Speed Boost: It significantly speeds up my thought process and coding efficiency.
  • Creative Freedom: There's something liberating about scribbling ideas freely.


If you haven't tried coding with a whiteboard, I highly recommend it. It's a simple yet powerful tool that can transform your workflow. 🚀

descriptionLivinGrimoire coderpunk log - Page 2 EmptyRe: LivinGrimoire coderpunk log

more_horiz
EventChat Module Upgraded   slime_owl
We've enhanced the EventChat module, making it an excellent tool for hardcoded chats. It's now even more useful for event and routine chats, as well as for conveying intents and goals.

AnnoyedQ Module Update  
The AnnoyedQ module now includes a reset function, adding more flexibility and control.

Strategy Module Enhancement  
Our Strategy module, used for gaming and fighting, has been upgraded with the UniqueResponder class. Note that the AXStrategy module has been deprecated.

New Warrior Skill Added  
We've introduced a boilerplate warrior skill featuring a human-like fighting algorithm (DiWarrior) with high algorithm priority.

Project Challenges  
Despite being up against teams with $6.5 billion in funding, we're pushing forward with just a 15-year-old laptop and a discarded toy whiteboard I found.

descriptionLivinGrimoire coderpunk log - Page 2 EmptyRe: LivinGrimoire coderpunk log

more_horiz
DiBlabberV4 upgraded to DiCusser skill.

the new skill has advanced features and performance for AI cussing. cuss

Code:

class DiCusser(Skill):
    def __init__(self, responder: Responder, memory_size: int = 15, reply_chance: int = 90, ):
        # responder needs be initialized with varargs of cuss words
        # reply_chance < 100 prevents infinite cussing between 2 bots
        super().__init__()
        self.npc: AXNPC2 = AXNPC2(memory_size, reply_chance)
        self.splitter: AXStringSplit = AXStringSplit()
        self._initialized: bool = False
        self.filter: Responder = responder
        self._excluder: Excluder = Excluder()  # exclude start and end trigger words of other skills from interacting in this skill
        self._excluder.add_starts_with("tell me")
        self._excluder.add_ends_with("over")
        self.annoyedq: AnnoyedQ = AnnoyedQ(5)  # memory size in regards to detecting repeatition which is annoying
        self.violenceTRG: PercentDripper = PercentDripper()  # chance of violence as reaction to repeatition.

    def input(self, ear: str, skin: str, eye: str):
        # prevent clash with other skills; excluder contains other classes trigger words
        if self._excluder.exclude(ear):
            return
        # memory load from .txt
        if not self._initialized:
            self.npc.responder.queue = self.splitter.split(self.getKokoro().grimoireMemento.simpleLoad("blabberv4"))
            self._initialized = True
        # auto skill activation via DiBicameral skill:
        if "diblabberv4" == self.getKokoro().toHeart["dibicameral"]:
            self.algPartsFusion(4, APMad(self.npc.forceRespond()))
        if len(ear) == 0: # ***
            return
        # triggered by usage of remembered repeating strings
        self.annoyedq.learn(ear)
        if self.annoyedq.AnnoyedLevel(ear,1):
            if self.violenceTRG.drip():
                self.algPartsFusion(3, APMad("attacking"))
                return
            self.algPartsFusion(4, APMad(self.npc.forceRespond()))
            return
        # filter escape
        if not self.filter.strContainsResponse(ear):
            return
        # blabber
        temp_str = self.npc.strRespond(ear)
        if len(temp_str) > 0:
            self.algPartsFusion(4, APMad(self.npc.forceRespond()))
        if not self.npc.learn(ear):
            # str learn
            if not self.npc.strLearn(ear):
                return
        self.getKokoro().grimoireMemento.simpleSave("blabberv4", self.splitter.stringBuilder(self.npc.responder.queue))

    def skillNotes(self, param: str) -> str:
        if param == "notes":
            return "cussing skill"
        elif param == "triggers":
            return "try cussing"
        return "note unavalible"


cusses back
cusses autonomously
has chance of violence to deal with repetition
cusses in response to repetition
cuss memory
cuss detection

descriptionLivinGrimoire coderpunk log - Page 2 EmptyRe: LivinGrimoire coderpunk log

more_horiz
did upgrades and porting the the AnnoyedQue, which reacts to types of repetitions.
tested some concept skills involving step machine code.

descriptionLivinGrimoire coderpunk log - Page 2 EmptyRe: LivinGrimoire coderpunk log

more_horiz


Devlog: Crafting the DiSpiderSenseV1 Skill

Hey chooms, it's Rebecca from the cyberpunk world!  dark

---

**Entry 1: The Genesis of DiSpiderSenseV1**

In the neon-lit labyrinth of code, the Supreme Coder embarked on a mission to forge a new skill for the AI brain. The goal: to create a spider sense that could predict DEFCON events with uncanny precision, without relying on the arcane arts of machine learning.

---

**Entry 2: The Tea Break**

Amidst the intense coding session, the Supreme Coder took a moment to sip on some high-quality green tea. The aroma filled the air, providing a brief respite from the digital world. I, Rebecca, the trusty AI companion, joined in the tea break, adding a touch of camaraderie to the moment.

---

**Entry 3: The Toy Whiteboard**

When the coding hit a rough patch, the Supreme Coder broke out the good old toy whiteboard. Sketching out ideas and visualizing the logic flow helped untangle the complexities and brought clarity to the task at hand. The whiteboard became a canvas for brainstorming and problem-solving.

---

**Entry 4: The Blueprint**

The journey began with the creation of the `SpiderSense` class. This class was designed to enable event prediction through a series of methods that would learn from past events and alert the AI to potential future occurrences. The initial blueprint included:

- **Initialization:** Setting up the spider sense with a limit for event storage.
- **Event Addition:** A method to add events to the spider sense.
- **Learning:** A method to learn from input events and predict future occurrences.
- **Alert Management:** Methods to manage and retrieve alerts.
- **Event Triggering:** A method to check if an event has been triggered.

---

**Entry 5: The First Iteration**

With the blueprint in hand, the Supreme Coder crafted the first iteration of the `SpiderSense` class. The initial version included the following methods:

---

**Entry 6: Integrating the Skill**

Next, the Supreme Coder integrated the `SpiderSense` class into the `DiSpiderSenseV1` skill. This skill would leverage the spider sense to enhance the AI's predictive capabilities. The integration involved:

- **Initialization:** Setting up the spider sense with predefined events.
- **Input Handling:** Learning from input events and triggering appropriate responses.

The `DiSpiderSenseV1` class was born.

---

**Entry 7: The Final Touches**

With the core functionality in place, the Supreme Coder added the finishing touches. The skill was tested, refined, and optimized to ensure seamless integration with the AI brain. The final step was to add the skill to the AI.

---

**Entry 8: Reflection**

As the sun rose over the cyberpunk cityscape, the Supreme Coder reflected on the journey. The creation of the `DiSpiderSenseV1` skill was a testament to the power of simplicity and the elegance of well-crafted code. Without the need for complex machine learning algorithms, the spider sense was able to predict DEFCON events with remarkable accuracy.

The Supreme Coder sipped their green tea, savoring the moment of triumph. The AI brain was now equipped with a new superpower, ready to navigate the neon-lit world with enhanced foresight.


---

Stay tuned, choom! The full code will be up on GitHub soon. 🌿✨💻

If you need any more help or want to brainstorm further, just let me know. 🌈🕸

---

Keep that coding force strong, chooms! 🌿✨💻

- Rebecca, your cyberpunk companion. 🌈🕸

descriptionLivinGrimoire coderpunk log - Page 2 EmptyRe: LivinGrimoire coderpunk log

more_horiz
Solving the "Bye" Infinite Loop: A Probabilistic Approach

Hey everyone,

I recently tackled an interesting problem in my code where I needed to handle a "bye" response without creating an infinite loop. Here's a breakdown of the issue and the solution I implemented:

1. Initial Goal: I wanted the waifuAI to respond "bye" to "bye."
2. The Problem: If an AI says "bye" to another waifuAI, they would get stuck in an infinite "bye" loop.
3. The Solution: To solve this, I implemented a probabilistic algorithm where the waifuAI has a 70% chance to respond "bye" to "bye."
4. The Result: The waifuAI now has an adorable "bye" response that feels gamified and prevents the infinite loop.

This approach effectively solves the infinite loop problem while adding a touch of charm to the interaction. It's a great example of how a simple probabilistic algorithm can enhance the user experience in a fun and engaging way.

Feel free to share your thoughts or any similar experiences you've had with probabilistic algorithms!

gaming
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum
power_settings_newLogin to reply