Search results

  1. owly

    AX beefup

    class TrgCountDown { var maxCount:Int = 2 var count:Int init() { count = maxCount } init(limit:Int) { count = limit maxCount = limit } @discardableResult func countDown() -> Bool{ count -= 1 if (count == 0) {...
  2. owly

    AX beefup

    class UniqueItemsPriorityQue{ /// a priority queue without repeating elements var p1:PriorityQueue<String> = PriorityQueue<String>() var queLimit:Int = 5 init() { } init(queLimit:Int) { self.queLimit = queLimit } init(_items:String...) {...
  3. owly

    AX beefup

    class TrgParrot:TrGEV3{ var maxTolerance:Int = 10 var tolerance:Int = 10 var kokoro:Kokoro // responses var defaultResponse:Responder = Responder("hadouken","talk","chi3","chi4","shoryuken") let repeatedResponder:RepeatedElements = RepeatedElements() let...
  4. owly

    AX beefup

    class TrgMinute:TrGEV3{ // trigger true at minute once per hour var hour1:Int = -1 let minute:Int override init() { minute = Int.random(in: 0...59) } init(minute:Int) { self.minute = minute } let pl:PlayGround = PlayGround() override func...
  5. owly

    AX beefup

    tolerance trigger class TrgRnd:TrGEV3{ var reps:Int = 0 var maxReps:Int = 2 override init() { } init(maxReps:Int) { self.maxReps = maxReps } override func reset() { // refill trigger reps = Int.random(in: 0...maxReps) } override func...
  6. owly

    AX beefup

  7. owly

    AX beefup

  8. owly

    [MEDIA]

  9. owly

    AX beefup

    class EV3DaisyChain { // this class connects several logic gates triggers together var trgGates:Array<TrGEV3> = [TrGEV3]() func EV3DaisyChain(_ gates:TrGEV3...) { for g8t:TrGEV3 in gates{ trgGates.append(g8t) } } func reset() { for...
  10. owly

    AX beefup

    // TRIGGERS public class TrGEV3 { // advanced boolean gates with internal logic // these ease connecting common logic patterns, as triggers func reset() { } func input(ear:String, skin:String, eye:String) { } func trigger() -> Bool{ return false; } }
  11. owly

    AX beefup

  12. owly

    AX beefup

    class ForcedLearn{ var keyWord:String = "say" let rUtil:RegexUtil = RegexUtil() let p1:PriorityQueue<String> = PriorityQueue<String>() var queLimit:Int = 5 func input(in1:String) { if rUtil.firstWord(str2Check: in1).elementsEqual(keyWord){...
  13. owly

    AX beefup

    class RepeatedElements{ // detects repeating elements let p1:PriorityQueue<String> = PriorityQueue<String>() let p2:PriorityQueue<String> = PriorityQueue<String>() var queLimit:Int = 5 func input(in1:String) { if p1.elements.contains(in1){ p2.insert(in1)...
  14. owly

    AX beefup

    package AXJava; public class InputFilter { // filter out non-relevant input // or filter in relevant data public String filter(String ear, String skin, String eye){ // override me return ""; } }
  15. owly

    AX beefup

    let happy = Responder("good","awesome","great","wonderful","sweet","happy") let curious = Responder("why","where","when","how","who","which","whose") let angry = Responder("hiyas","fudge","angry","waste","stupid","retard")
  16. owly

    AX beefup

    use a temp neuron to clear the outAlg :s44:
  17. owly

    AX beefup

    // (*)Algorithm Dispensers class AlgDispenser { // super class to output an algorithm out of a selection of algorithms var algs:Array<Algorithm> = [Algorithm]() var activeAlg:Int = 0 init(_algorithms:Algorithm...){ for alg in _algorithms { algs.append(alg)...
  18. owly

    AX beefup

    and add rnd simple functions
  19. owly

    AX beefup

    translate this: class DrawRnd { private var numbers:Array<Int> = [Int]() init(size:Int){ for index in 1...size{ numbers.append(index) } } init(_ markers:Int...) { for num in markers { numbers.append(num) } } func...
  20. owly

    AX beefup

    too many stinkin folder
Top