A simple experiment.
https://www.scirra.com/arcade/other-games/simple-artifical-neural-network-tool-32903
To understand the basic calculations you can visit this site
Develop games in your browser. Powerful, performant & highly capable.