Skip to content

CAKarlsson/Tic-tac-toe-pyth

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published