Search results

  1. fukurou

    🐍 python Chii's python suit

    Person class Person(): def __init__(self): self.name = "" self.active = False self.phone = "" self.skill = "" self.profession = "" self.jutsu = "hadouken" # location self.email = "" self.id = "" @property def...
  2. fukurou

    🐍 python Chii's python suit

    APVerbatim from __future__ import annotations from abc import ABC, abstractmethod from enum import Enum ''' Failure types: - ok: no fail - requip: item should be added - cloudian: algorithm goes to stand by in its Dclass - fail: no input ''' class enumFail(Enum): fail = "fail" requip...
  3. fukurou

    🐍 python Chii's python suit

    APSay from __future__ import annotations from abc import ABC, abstractmethod from enum import Enum ''' Failure types: - ok: no fail - requip: item should be added - cloudian: algorithm goes to stand by in its Dclass - fail: no input ''' class enumFail (Enum): fail = "fail" requip =...
  4. fukurou

    🐍 python Chii's python suit

    Mutatable from __future__ import annotations from abc import ABC, abstractmethod from enum import Enum ''' ENUMFAIL CLASS ''' class enumFail(Enum): fail = "fail" # no input requip = "requip" # item should be added dequip = "dequip" cloudian = "cloudian" # algorithm goes to...
  5. fukurou

    🐍 python Chii's python suit

    AbsDictionaryDBShadow from abc import ABC, abstractmethod class AbsDictionaryDB(ABC): @abstractmethod def save(self, key: str, value: str): '''Returns action string''' pass @abstractmethod def load(self, key: str) -> str: '''TODO set to return null as...
  6. fukurou

    🐍 python Chii's python suit

    AbsDictionaryDB from abc import ABC, abstractmethod class AbsDictionaryDB(ABC): @abstractmethod def save(key: str, value: str): '''save to DB''' pass @abstractmethod def load(key: str) -> str: '''set to return "null" as default if key not found !!!'''...
  7. fukurou

    [MEDIA]

  8. fukurou

    👨‍💻 dev active task

    mock python classes for testing the GrimoireMemento : class t1(Mutatable, ABC): def mutation(self) -> Mutatable: print("t1 mutating into t2") return t2() def clone(self) -> Mutatable: print("t1 cloning another t1") return t1() class t2(Mutatable, ABC)...
  9. fukurou

    [MEDIA]

  10. fukurou

    👨‍💻 dev active task

    import java.util.Hashtable; public class GrimoireMemento { //class has been modified, only use chi adaptor for mutation objects to enable save load of final mutations private Hashtable<String, String> rootToAPNumDic = new Hashtable<>(); private Hashtable<String, Mutatable> APNumToObjDic...
  11. fukurou

    [MEDIA]

  12. fukurou

    [MEDIA]

  13. fukurou

    👨‍💻 dev active task

    convert the GrimoireMemento class to python : import java.util.Hashtable; public class GrimoireMemento { private Hashtable<String, String> rootToAPNumDic = new Hashtable<>(); private Hashtable<String, AbsAlgPart> APNumToObjDic = new Hashtable<>(); private AbsDictionaryDB...
  14. fukurou

    stratego best setups

    https://www.ultraboardgames.com/stratego/setups.php
  15. fukurou

    👨‍💻 dev active task

    some algParts can mutate into different algParts on certain events such as failures these algParts are equiped with an interface called mutatable : public interface Mutatable { public AbsAlgPart mutation(); } example of a mutatable algPart : package chobit; import java.util.ArrayList...
  16. fukurou

    [MEDIA]

  17. fukurou

    [MEDIA]

  18. fukurou

    👨‍💻 dev active task

    AbsDictionaryDBShadow class AbsDictionaryDBShadow : AbsDictionaryDB() { // used as a fill in class if you want to test the chobit and havent built a DB // class yet override fun save(key: String, value: String) {} override fun load(key: String): String { return "null"...
  19. fukurou

    👨‍💻 dev active task

    class AbsDictionaryDB(ABC): @abstractmethod def save(key: str, value: str): '''Returns action string''' pass @abstractmethod def load(key: str) -> str: '''TODO set to return null as default if key not found !!!''' pass
  20. fukurou

    time travel test

    it works 🥳
Top