FragileTech / FractalAI

Cellular automaton-based calculus for the masses
https://github.com/FragileTech
GNU Affero General Public License v3.0
68 stars 14 forks source link

Can you provide an example for in-browser canvas games? #72

Open nukadelic opened 6 years ago

Guillemdb commented 6 years ago

I am sorry, but I have no idea of how to implement the Environmet interface for in-browser canvas games. Do you happen to know a way to control those games using Python?

nukadelic commented 6 years ago

Hmmmmm... seems like it won't be that easy, i have tried many different ways the past 2 days. Here is my notebook: https://gist.github.com/nukadelic/388ac4a3e2376b13fee27bcfeddc6c37

Edit: I was thinking to try sockets, next. Also it is possible to declare a Python method which will involve FractalAI and continuously get executed from within JS ( but something tells me it will be a lot more difficult :| )