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 Agent.play(previous_turn,game,replay_memory,experience,illegal_moves) #6

Open amaynez opened 3 years ago

amaynez commented 3 years ago

I've selected Agent.play(previous_turn,game,replay_memory,experience,illegal_moves) for refactoring, which is a unit of 21 lines of code and 5 parameters. Addressing this will make our codebase more maintainable and improve Better Code Hub's Keep Unit Interfaces Small 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: