PVP Tic tac toe
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
-
- Git was used for version control by utilizing the Gitpod terminal to commit to Git and Push to GitHub.
-
- GitHub is used to store the projects code after being pushed from Git.
-
- Pythontutor made me understand what i had written wrong with my code.
-
- Heroku was used to host the project.
-
- 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.
-
Fork or clone this Repository
-
Create a new Heroku app
-
Set the buildbacks to Python and NodeJS in that order
-
Link the Heroku app to the repository
-
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...
-
Log in to GitHub and locate the GitHub Repository
-
At the top of the Repository (not top of page) just above the "Settings" Button on the menu, locate the "Fork" Button.
-
You should now have a copy of the original repository in your GitHub account.
Making a Local Clone
-
Log in to GitHub and locate the GitHub Repository
-
Under the repository name, click "Clone or download".
-
To clone the repository using HTTPS, under "Clone with HTTPS", copy the link.
-
Open Git Bash
-
Change the current working directory to the location where you want the cloned directory to be made.
-
Type
git clone
, and then paste the URL you copied in Step 3.
$ git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
- 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.