Approach includes of construction of two models each which gets trained according to the first choice made by the player. The game works as firstly, the CPU plays with each other and store the results of each move in a list. Here the CPU is given a reward for each profitable move that decreases the probability of opponent to win and thus each move has a reward point. Among all such possible moves the CPU chooses the one with maximum rewards points and then successively proceeds till any one player wins.
Use the package manager pip.
pip install keras
Install matplotlib and csv library
pip install matplotlib
pip install csv
- numpy
- matplotlib
- csv
- keras
python deepdeep.py