Giter Club home page Giter Club logo

tic-tac-toe-pyth's Introduction

PVP Tic tac toe

Live project

Intro

Tic tac toe or 3 in a row which it is sometimes called is a game where two players gets to place one mark each turn. First to get three in a row wins.

Goals

To enable the user to play a mulitplayer game of tic tac toe in the command line. The application can also be used to show how python is used to create a simple multiplayer game from the command line.

Features

  • Input value validation and error checking
  • Assigns X or O symbol to player
  • Allows user input

Features to be added

  • Play again feature
  • Play against pc
  • Coin flip to decide which players begins

Audience

Tic tac toe is a game that is friendly for all ages.

Technologies Used

Languages Used

Frameworks, Libraries & Programs Used

  1. Git

    • Git was used for version control by utilizing the Gitpod terminal to commit to Git and Push to GitHub.
  2. GitHub:

    • GitHub is used to store the projects code after being pushed from Git.
  3. Pythontutor

    • Pythontutor made me understand what i had written wrong with my code.
  4. Heroku

    • Heroku was used to host the project.
  5. Codepen

    • Codepen was used to run the project and quickly adjust it.

Testing

The PEP8 Validator were used to validate the project to ensure there were no syntax errors.

  • Python

    • The validator returned no errors

Testing

  • Tested that no invalid or out of bounds inputs are accepted

  • Tested in the gitpod terminal

  • Tested in codepen.io terminal

Known Bugs

  • I had a large amount of bugs which took a large amount of time sorting out.

Deployment

Heroku

This project was deployed using Code Institute's mock terminal for Heroku.

  1. Fork or clone this Repository

  2. Create a new Heroku app

  3. Set the buildbacks to Python and NodeJS in that order

  4. Link the Heroku app to the repository

  5. Click on deploy

Forking the GitHub Repository

By forking the GitHub Repository we make a copy of the original repository on our GitHub account to view and/or make changes without affecting the original repository by using the following steps...

  1. Log in to GitHub and locate the GitHub Repository

  2. At the top of the Repository (not top of page) just above the "Settings" Button on the menu, locate the "Fork" Button.

  3. You should now have a copy of the original repository in your GitHub account.

Making a Local Clone

  1. Log in to GitHub and locate the GitHub Repository

  2. Under the repository name, click "Clone or download".

  3. To clone the repository using HTTPS, under "Clone with HTTPS", copy the link.

  4. Open Git Bash

  5. Change the current working directory to the location where you want the cloned directory to be made.

  6. Type git clone, and then paste the URL you copied in Step 3.


$ git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY

  1. Press Enter. Your local clone will be created.

$ git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY

> Cloning into `CI-Clone`...

> remote: Counting objects: 10, done.

> remote: Compressing objects: 100% (8/8), done.

> remove: Total 10 (delta 1), reused 10 (delta 1)

> Unpacking objects: 100% (10/10), done.

Click Here to retrieve pictures for some of the buttons and more detailed explanations of the above process.

Credits

Code

  • Inspired by TechCentreUK on github TechCentreUK

  • The algorithm to check win function was taken from this video here: YouTube

Acknowledgements

  • My friend for supporting me and giving advice.

  • Code institutes slack community were a great deal for help.

tic-tac-toe-pyth's People

Contributors

cakarlsson 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.