Created
April 2, 2017 05:49
-
-
Save lizixroy/bc9b864a4dac608fb292fc5803aa433e to your computer and use it in GitHub Desktop.
Aplysia
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ViewController: UIViewController { | |
var aplysia: Aplysia? | |
@IBAction func touchSiphon(_ sender: Any) { | |
self.aplysia!.siphon.touch() | |
} | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
let gill = Gill() | |
let siphon = Siphon() | |
gill.neurons.append(MotorNeuron()) | |
siphon.neurons.append(SensoryNeuron()) | |
self.aplysia = Aplysia(siphon: siphon, gill: gill) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment