Currently, the code is not commented very well. This will change soon.
I wrote a report explaining how this AI Assistant was made. It's tailored towards an non-computer-science audience. Please see: Rough Draft Report
Libraries Used:
- openCV (Image Preprocessing)
- Keras/TensorFlow (Convolutional Neural Networks)
- TkInter (GUI)
- PIL (Mapping images into GUI)
If you still want to see the code for the following:
-
The Convolutional Neural Network Architecture (LeNet).
-
Training the first CNN (Convolutional Nerual Network).
-
Predictions on the first CNN.
-
Live (Real-Time) predictions test on the first CNN, to learn opponent's deck.
-
Training the second CNN (Convolutional Nerual Network).
-
Predictions on the second CNN.
-
Live (Real-Time) predictions test on the second CNN, to know which card my opponent is playing.
-
Both CNN's running together during real-time to predict opponent's card cycle + elixir. (This section also has a lot of code regarding the actual AI application).
-
TkInter GUI
The code can be found here: Clash_Royale_Helper.py