Implementing and training a RL model to play a snake game using PyTorch
pip install -r requirements.txt
Q-Learning, from Bellman equation, Q'(s,a)= Q(s,a) + α(R(s,a) + γmax(Q(s',a')))
Q: Q value
R: Reward
α : learning rate
γ : parameter to controle the randomness < 1
developed using Pygame: https://www.pygame.org/contribute.html
Thanks to @Python_engineer , and Thanks a lot to @FreeCodeCamp Community