Search results

  1. fukurou

    cpp port

  2. fukurou

    cpp port

  3. fukurou

    cpp port

  4. fukurou

    [MEDIA]

  5. fukurou

    cpp port

    package LivinGrimoire; import java.util.ArrayList; import java.util.List; public class Skill { protected Kokoro kokoro = null; // Consciousness reference for interskill communication protected Algorithm outAlg = null; // Skill output algorithm protected int outpAlgPriority = -1...
  6. fukurou

    👨‍💻 dev core diet

    // Constructor Skill::Skill() {} // Virtual input method (can be overridden in derived classes) void Skill::input(const std::string& ear, const std::string& skin, const std::string& eye) { // No default implementation } // Output method: Passes the algorithm to Neuron void...
  7. fukurou

    👨‍💻 dev core diet

    class Skill { protected: Kokoro* kokoro = nullptr; // Reference for interskill communication std::unique_ptr<Algorithm> outAlg = nullptr; // Skill's output Algorithm int outpAlgPriority = -1; // Priority (1 -> 5, 1 being the highest) public...
  8. fukurou

    cpp port

    .h #ifndef KOKORO_H #define KOKORO_H #include <string> #include <unordered_map> using namespace std; class Kokoro { private: string emot; public: unordered_map<string, string> toHeart; // Constructor Kokoro(); // Getters and Setters const string& getEmot() const...
  9. fukurou

    cpp port

    .h #ifndef ALGORITHM_H #define ALGORITHM_H #include <vector> class Algorithm { private: std::vector<void*> algParts; // Using void* to avoid details about Mutatable public: // Constructors Algorithm(const std::vector<void*>& parts); Algorithm(const void* parts[], size_t...
  10. fukurou

    F# core

    the F stands 4 fuck module AbsDictionaryDB open System.Collections.Generic type DictionaryDB(saveFunc, loadFunc) = let db = Dictionary<string, string>() member _.Save key value = saveFunc db key value member _.Load key = loadFunc db key // Example save/load logic let defaultSave...
  11. fukurou

    👨‍💻 dev core diet

    module AbsDictionaryDB open System.Collections.Generic type DictionaryDB(saveFunc, loadFunc) = let db = Dictionary<string, string>() member _.Save key value = saveFunc db key value member _.Load key = loadFunc db key // Example save/load logic let defaultSave (db...
  12. fukurou

    👨‍💻 dev core diet

    module AbsDictionaryDB type SaveFunction = string -> string -> unit type LoadFunction = string -> string let createDictionaryDB (saveFunc: SaveFunction) (loadFunc: LoadFunction) = { new obj() with member _.Save = saveFunc member _.Load = loadFunc } // Example usage...
  13. fukurou

    👨‍💻 dev core diet

    class Skill { protected var kokoro: Kokoro? = nil // Consciousness, shallow ref class to enable interskill communications protected var outAlg: Algorithm? = nil // Skills output protected var outpAlgPriority: Int = -1 // DEFCON levels 1->5 init() { super.init() }...
  14. fukurou

    👨‍💻 dev core diet

    class Algorithm { private var algParts: [Mutatable] = [] init(algParts: [Mutatable]) { self.algParts = algParts } init(_ algParts: Mutatable...) { self.algParts = algParts } func getAlgParts() -> [Mutatable] { return algParts } func...
  15. fukurou

    👨‍💻 dev core diet

    class APVerbatim: Mutatable { private var sentences: [String] = [] init(sentences: String...) { self.sentences.append(contentsOf: sentences) } init(list1: [String]) { self.sentences = list1 } override func action(ear: String, skin: String, eye: String)...
  16. fukurou

    👨‍💻 dev core diet

    public void algPartsFusion(int priority, Mutatable... algParts) { this.outAlg = new Algorithm(algParts); this.outpAlgPriority = priority; // 1->5, 1 is the highest algorithm priority }
  17. fukurou

    👨‍💻 dev core diet

    class Skill: def __init__(self) -> None: # Initialize protected attributes self.kokoro: Optional['Kokoro'] = None # Shallow reference for interskill communication self.outAlg: Optional['Algorithm'] = None # Skill's output self.outpAlgPriority: int = -1 #...
  18. fukurou

    👨‍💻 dev core diet

    skill original class Skill: def __init__(self): # The variables start with an underscore (_) because they are protected self._kokoro = None # consciousness, shallow ref class to enable interskill communications self._outAlg: Algorithm # skills output...
  19. fukurou

    👨‍💻 dev core diet

    class Algorithm: def __init__(self, algParts: list[Mutatable]) -> None: super().__init__() self.algParts: list[Mutatable] = algParts @classmethod def from_varargs(cls, *algParts: Mutatable) -> 'Algorithm': # Create an instance from varargs return...
  20. fukurou

    👨‍💻 dev core diet

    class Algorithm: def __init__(self, *args: Mutatable) -> None: super().__init__() if len(args) == 1 and isinstance(args[0], list): # Check if input is a list self.algParts: list[Mutatable] = args[0] # Assign the list directly else: # Handle varargs case...
Top