introducing the cyberpunk software design pattern Green-1024-x-1024

an update for the LivinGrimoire

Code:

'''*********
 *intro *
 ********

 up until now, the LivinGrimoire was on par with the matrix learn scene.
 one line of code to add one skill.

 that is great, that is sci-fi turned real, that is the most significant coding achievement in the history of time.

 but hey why stop there? why only be on par with the matrix and the human brain ?
 what is beyond the matrix level? you already know

 cyberpunk>the matrix.
 one line of code to add a skill, but ALSO! 1 line of code to add a hardware capability.

 ***********
 *Atributes*
 ***********

 the logicChobit is a Chobits attribute with logic skills. these skills have algorithmic logic,
 and thinking patterns.

 the hardwareChobit is a Chobit attribute with hardware skills. these skills access the
 hardware capabilities of the machine.
 for example: output printing, sending mail, sending SMS, making a phone call, taking
 a photo, accessing GPIO pins, opening a program, fetching the weather and so on.

 ********************
 *special attributes*
 ********************

 in some cases the hardware chobit may want to send a message to the logic chobit,
 for example to give feedback on hardware components. this is handled by the bodyInfo
 String.

 the emot attribute is the chobit's current emotion.

 the logicChobitOutput is the chobit's last output.

 **********************
 *hardware skill types*
 **********************

 assembly style: these skills are triggered by strings with certain wild card characters
 for example: #open browser

 funnel: these are triggered by strings without wild cards.
 for example: "hello world"->prints hello world

 *************
 *example use*
 *************
 DiSysOut is an example of a hardware skill

 see Brain main for example use of the cyberpunk Software Design Pattern'''


class Brain:
    def __init__(self):
        self._emotion: str = ""
        self._bodyInfo: str = ""
        self._logicChobitOutput: str = ""
        self.logicChobit: Chobits = Chobits()
        self.hardwareChobit: Chobits = Chobits()

    def getEmotion(self) -> str:
        return self._emotion

    def getBodyInfo(self) -> str:
        return self._bodyInfo

    def getLogicChobitOutput(self) -> str:
        return self._logicChobitOutput

    def doIt(self, ear: str, skin: str, eye: str):
        if not self._bodyInfo == "":
            self._logicChobitOutput = self.logicChobit.think(ear, self._bodyInfo, eye)
        else:
            self._logicChobitOutput = self.logicChobit.think(ear, skin, eye)
        self._emotion = self.logicChobit.getSoulEmotion()
        self._bodyInfo = self.hardwareChobit.think(self._logicChobitOutput, skin, eye)

example main code:

Code:

# This is a sample Python script.
from LivinGrimoireCoreV2 import *
from AXPython import *

# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
    b1: Brain = Brain()
    b1.logicChobit.addSkill(DiHelloWorld())
    b1.hardwareChobit.addSkill(DiSysOut())
    b1.doIt("hello", "", "")


1 line of code to add a skill
1 line of code to add hardware capabilities (the upgrade) light_saber