A Perceptron in Age of Empires II
11 hours ago
- #Logic Gates
- #Age of Empires II
- #Game Programming
- An operational NAND gate built in Age of Empires II's scenario editor, using goats as signal carriers on rails (grass for 0, bridge for 1).
- The gate features 'gate ready' rails (ice) to prevent race conditions, with a signal-goat indicating readiness for calculation.
- It computes AND(0,1) in the example, outputting 0 from the AND gate and 1 after the NOT gate, with internal workings visibly displayed.
- An operational perceptron in Age of Empires II, based on similar logic as the NAND gate, using a bipolar 1-bit implementation.
- Composed of two XNOR gates for inner product calculations and an AND gate as the threshold, omitting the bias term (hardcoded in the step function).
- Designed to learn AND, with input vectors x and weights w processed concurrently to avoid issues, outputting predictions like 1 for x=[1,1] and w=[1,1].
- An ansatz-based training circuit in Age of Empires II for perceptron training, using a complex arrangement of gates (XNOR, AND, OR, NOT) to compute new weights.
- Inputs include true label t, input x, and current weights w, with environmental coding (bamboo for XNOR, forests for AND, etc.) and teleporting goats for branching.
- Tested in verilog and being scripted for implementation, despite complexity and time constraints.