Toying with causality: Threaded agents that update their states and observe other agents' states.
Example with four agents:
Qt 5
$ qmake blinkers.pro
$ make
$ ./blinkers
This software was developed in the hope that it would be helpful to the AI research community and is freely available for redistribution and/or modification under the terms of the GNU General Public Licence. It is distributed WITHOUT WARRANTY, without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License for more details.
If you find this code to be of any use, please let me know. I would also welcome any feedback.
Copyright (c) 2018 Rafik Hadfi, rafik.hadfi [at] gmail.com