So how are we going to do this? Buddhism consists of several teachings.
- 3 Universal Truths
- 4 Noble Truths
- Noble eightfold path
Since I am trying to express a story as well as a philosophy, I decided to use variable names to literary advantage.
var siddhartha = new Human(“Siddhartha”);
var truth = new EverythingChange("Everything changes");
var status = siddhartha.enlighten();
var buddha = siddhartha;
After Siddhartha learns the truths, he enlightens. Only after enlighten is he considered a buddha. So by this construct, Buddha is a Human.
I am at the moment going through the Universal truths. If anyone is interested in contributing, please visit buddha.js GitHub page, fork and send a PR.