I have a simple implementation of a simple game in Python.
The Game has simple rules:
- 2 Players play against each other
- Every player has 10 cards
- Each round the players play a card simultaneously
- The Player who played a higher card wins the round
- When there are no cards left the Player with the most won rounds wins the game
Now I wanted to build an AI using a Neural Network
There is an init-Function, a chooseMove-Function (here you can see the enemies last played Card) and a gameOver-Function (here you can see the result of the game)
Now my question is:
-> How do I approach this? Do I build different Networks for the different moves (1. move, 2. move, ....) or one for everything? What would I define as input and output and how do I tell the network what's a win and what's a loss?
And do I already do some thinking for the network? (E.g. it's good when you win the round that the difference between your card and the enemies card is very small but if you loose the round the difference should be very big)
I know these are all very basic questions and maybe it shows that my understanding of NN's is not really good but I thought that this might help me understand the Basics of NN's.