Giter Site home page Giter Site logo

tictactoe_game's Introduction

TicTacToe_Game

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

tictactoe_game's People

Contributors

darshansol9 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.