I was looking for an opportunity to learn/improve skills so I wrote this simple Tic-Tac-Toe game.
I have written Python code for simple network tests and know enough JavaScript to get by. Still not certain on fine details though, particularly what subtle (or not) best practices I am likely missing.
Code review, testing and advice on how to improve would be appreciated.
Code is running on PythonAnywhere here: http://coffeeaddict.pythonanywhere.com/tictactoe
Code is here on GIT: https://github.com/coffeeaddict19/tictactoe
The three pieces are:
JavaScript and Markup: tictactoe_page.html
Bottle Framework Implementation: tictactoe_bottle.py
Python Game Logic: tictactoe_logic.py
If you look closely at the game logic the AI is...primitive. Researching MinMax to improve it is the next thing on list but in my experience if I wait for perfection I never get anything done.
Anyway...how can I improve this game and this code?
Thanks,
John
↧