Search results

  1. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    import livinGrimoire.Algorithm import java.util.* // (*)Algorithm Dispensers class AlgDispenser(vararg algorithms: Algorithm) { // super class to output an algorithm out of a selection of algorithms private val algs: ArrayList<Algorithm> = ArrayList<Algorithm>() private var...
  2. fukurou

    [MEDIA]

  3. fukurou

    πŸ‘¨β€πŸ’» dev Java->Kotlin port

    class DiSysOut : DiSkillV2() { override fun input(ear: String, skin: String, eye: String) { if (!ear.isEmpty() and !ear.contains("#")) { println(ear) } } }
  4. fukurou

    πŸ‘¨β€πŸ’» dev Java->Kotlin port

    class Brain { var logicChobit: Chobits var hardwareChobit: Chobits var emotion = "" private set var bodyInfo = "" private set var logicChobitOutput = "" private set init { logicChobit = Chobits() hardwareChobit = Chobits()...
  5. fukurou

    πŸ‘¨β€πŸ’» dev Java->Kotlin port

    hello world :s72:
  6. fukurou

    πŸ‘¨β€πŸ’» dev Java->Kotlin port

    class Chobits : thinkable() { protected var dClasses = ArrayList<DiSkillV2>() var fusion: Fusion protected set protected var noiron: Neuron // use this for telepathic communication between different chobits objects // several chobits can use the same soul // this...
  7. fukurou

    πŸ‘¨β€πŸ’» dev Java->Kotlin port

    class Chobits : thinkable() { protected var dClasses = ArrayList<DiSkillV2>() var fusion: Fusion protected set protected var noiron: Neuron // use this for telepathic communication between different chobits objects // several chobits can use the same soul // this...
  8. fukurou

    πŸ‘¨β€πŸ’» dev Java->Kotlin port

    open class thinkable { open fun think(ear: String, skin: String, eye: String): String { // override me return "" } }
  9. fukurou

    πŸ‘¨β€πŸ’» dev Java->Kotlin port

    class Fusion { var emot = "" private set private var result = "" private val ceraArr = arrayOfNulls<Cerabellum>(5) init { for (i in 0..4) { ceraArr[i] = Cerabellum() } } fun loadAlgs(neuron: Neuron) { for (i in 1..5) {...
  10. fukurou

    πŸ‘¨β€πŸ’» dev Java->Kotlin port

    class Cerabellum { // runs an algorithm private var fin = 0 var at = 0 private set private var incrementAt = false fun advanceInAlg() { if (incrementAt) { incrementAt = false at++ if (at == fin) { isActive =...
  11. fukurou

    πŸ‘¨β€πŸ’» dev Java->Kotlin port

    class DiHelloWorld // hello world skill for testing purposes : DiSkillV2() { override fun input(ear: String, skin: String, eye: String) { when (ear) { "hello" -> super.setVerbatimAlg(4, "hello world") // 1->5 1 is the highest algorithm priority } } }
  12. fukurou

    πŸ‘¨β€πŸ’» dev Java->Kotlin port

    open class DiSkillV2 { protected var kokoro = Kokoro(AbsDictionaryDB()) // consciousness, shallow ref class to enable interskill communications protected var diSkillUtils = DISkillUtils() protected var outAlg: Algorithm? = null // skills output protected var outpAlgPriority = -1 //...
  13. fukurou

    πŸ‘¨β€πŸ’» dev Java->Kotlin port

    class DISkillUtils { // alg part based algorithm building methods // var args param fun algBuilder(vararg algParts: Mutatable): Algorithm { // returns an algorithm built with the algPart varargs val algParts1 = ArrayList<Mutatable>() for (i in algParts.indices) {...
  14. fukurou

    πŸ‘¨β€πŸ’» dev Java->Kotlin port

    // used to transport algorithms to other classes class Neuron { private val defcons = Hashtable<Int, ArrayList<Algorithm>>() init { for (i in 1..5) { defcons[i] = ArrayList() } } fun insertAlg(priority: Int, alg: Algorithm) { if (priority in...
  15. fukurou

    πŸ‘¨β€πŸ’» dev Java->Kotlin port

    /* this class enables: communication between skills utilization of a database for skills in skill monitoring of which Mutatable was last run by the AI (consciousness) this class is a built-in attribute in skill objects. * */ class Kokoro(absDictionaryDB: AbsDictionaryDB?) { var emot = ""...
  16. fukurou

    πŸ‘¨β€πŸ’» dev Java->Kotlin port

    class APCldVerbatim : Mutatable { /* * this algorithm part says each past param verbatim */ private var sentences = ArrayList<String>() private var at = 0 private var cldBool // access via shallow reference : CldBool constructor(cldBool: CldBool, vararg...
  17. fukurou

    πŸ‘¨β€πŸ’» dev Java->Kotlin port

    class CldBool { //cloudian : this class is used to provide shadow reference to a boolean variable var modeActive = false }
  18. fukurou

    πŸ‘¨β€πŸ’» dev Java->Kotlin port

    // a step-by-step plan to achieve a goal class Algorithm(algParts: ArrayList<Mutatable>) { var algParts = ArrayList<Mutatable>() init { this.algParts = algParts } val size: Int get() = algParts.size fun clone(): Algorithm { // returns a deep copy...
  19. fukurou

    πŸ‘¨β€πŸ’» dev Java->Kotlin port

    public class GrimoireMemento { private AbsDictionaryDB absDictionaryDB; public GrimoireMemento(AbsDictionaryDB absDictionaryDB) { super(); this.absDictionaryDB = absDictionaryDB; } public String simpleLoad(String key){ return...
  20. fukurou

    πŸ‘¨β€πŸ’» dev Java->Kotlin port

    class APVerbatim : Mutatable { /* * this algorithm part says each past param verbatim */ private var sentences = ArrayList<String>() private var at = 0 constructor(vararg sentences: String) { for (i in sentences.indices) {...
Top