amaynez / TicTacToe

Tic Tac Toe game, designed to be used to train a Deep Neural Network via Reinforcement Learning (DQN). It can also be played by 2 humans and features a hard coded AI that never looses and will win if you do not do perfect play against it.
https://the-mvm.github.io/deep-q-learning-tic-tac-toe/
MIT License
4 stars 0 forks source link

Refactor OwnNNet_TicTacToe.py:silent_training(game,agent,replay_memory) #3

Open amaynez opened 3 years ago

amaynez commented 3 years ago

I've selected OwnNNet_TicTacToe.py:silent_training(game,agent,replay_memory) for refactoring, which is a unit of 83 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! 👍

Here's the gist of this guideline:

You can find more info about this guideline in Building Maintainable Software. 📖


ℹ️ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the 🔲 next to them. The risk profile below the candidates signals (✅) when it's enough! 🏁


Good luck and happy coding! :shipit: :sparkles: :100: