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...
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){...
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)...
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 "";
}
}
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")
// (*)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)...
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...
I've been playing VNs most of the day trying to crack the loebner puzzle. it would appear combining the spider sense with loads and loads
of responders(crafters in this case) could be the key. DJoker skill could also be a heavy upgrade.
at any rate, do the cycler AX next
package AXJava;
import LivinGrimoire.*;
public class LGTypeConverter {
private RegexUtil r1 = new RegexUtil();
public int convertToInt(String v1){
String temp = r1.extractRegex(enumRegexGrimoire.integer, v1);
if (temp.isEmpty()) {return 0;}
return...