What about an exclusive OR (XOR)? There’s no line on that ... reader — each output corresponds to a separate perceptron. Even the logic gate perceptrons could use two separate outputs.
Last time, I talked about a simple kind of neural net called a perceptron that you can cause ... I built a generic base class that implements the core logic and can handle different vector sizes.