This Game was a Personal Project without using any deep learning libraries and building the logic by learning some amazing tutorial. https://pythonprogramming.net/horizontal-winner-learn-python-3-tutorials/ - Sentdex Tutorial Referred.
Functions : main,compMove,game_board,game,win
Functionality: Can be played between two humans OR human and computer OR computer and computer.
Can play move out of the game board.
Can scale upto any dimension board.
Gets the summary of the win and lose, with text that motivates you to play again.Until the session is not terminated by the Input 'N' - Quit the game.
Human cannot win the game, that's the Assurity.
Loop Holes Addressed: Once Move Played cannot be played again by any player.
Cannot play outside the game_board considered invalid move and give another chance to play your move.
Short Description of Each Function:
compMove: Once the play move is done, it checks the possibility of winning the game by player1 and play that relevant move to curtail the chances of winning the game.
It checks the hacks like corners move available, centre moves available, edge moves available etc.
game_board : Sets up the enviroment of the board and starts the game.
game : Takes the input by the player turn and then amending the change by passing it to the gameboard.
win : Win checks is their any winner encountered and return True or False respective.
main : Takes the players name, The input they wanna play on the board and sets the summary of play until the session is terminated.
Output
https://drive.google.com/file/d/1V4sRcZhnYW-V6zyyzF4qh4vKd13ASlPb/view?usp=sharing