I’m not exactly sure how to do this but a resource that might be helpful is this neural network library made specifically to create Artificial Intelligence. It might have a bit of a learning curve but you should give it a try.
1 Like