This is a one page site which displays a simple tic tac toe game to be played between two players on a 3 X 3 or 5 X 5 board.
-
-
As a First Time Visitor, I want to:
- I want to understand the site's main purpose and find out what features it provides
- Play a simple tic tac toe game
-
As a Returning Visitor, I want to:
- Play a simple web-based tic-tac-toe game
- Explore a different board size
-
As a frequent Visitor, I want to:
- Play tic tac toe with a friend or against a bot
- Play the game in turns
- have my marker symbol drawn when I click inside an empty square
- know when I have won, lost or drawn the game
- restart the game when one ends
- play a tic tac toe game on a 3X3 or 5X5 board.
-
-
-
The main colors chosen are shades of green and blue.
- Spring green was used for the title to make it stand out.
- The blue colors used for the buttons are astranaut blue (#003D5B) and denim (#30638E).
- The X's and O's text on the board are red and blue.
-
- Arial is the font used for all text aside from the markers on the board. So that the text stands out and feel like one is actually marking a spot on the board the permanent marker font has been used for the X's and O's on the board.
-
-
The wireframes for this project are:
-
Responsive on all device sizes
-
Interactive elements
- Git
- Git was used for version control by utilizing the Gitpod terminal to commit to Git and Push to GitHub.
- GitHub:
- GitHub is used to store the projects code after being pushed from Git.
- Balsamiq:
- Balsamiq was used to create the wireframes during the design process.
- Font Awesome:
- Font Awesome was used on the buttons for asthetics reasons.
- Google Font
- Permanent marker which is the font used for the markers on the board was imported from google font.
- AM I RESPONSIVE
- used to show off the responsive design across the different devices.
The W3C Markup Validator and W3C CSS Validator Services were used to validate the project to ensure there were no syntax errors in the project. Issues found while testing were fixed and the pages revalidated.
-
-
As a First Time Visitor, I want to understand the site's main purpose and find out what features it provides. The tic tac toe board is clearly visible on the page
-
As a First Time Visitor, I want to play a simple tic tac toe game Upon opening the page user is presented with a the information to click in any of the sqaure to play.
-
-
- As a Returning Visitor, I want to play a simple web-based game of tic tac toe. User can click on the square to start playing the game
-
The Website was be tested on Google Chrome and Microsoft Edge
-
The website will be viewed on a variety of devices such as Desktop, Laptop, iPhone7, iPhone 8 & iPhoneX.
-
Lighthouse test was carried out for both desktop mobile devices in incognito mode and the result of the test shown below.
- Issue raised - When I click restart button before a current game ends, the click event on the game mode buttons aren't triggered when clicked. I branched off master to fix this issue and created a pull request which was linked to the issue. The issue was closed upon merging the pull request into master branch.
- Add an how to play button and how to play content.
- Make the game play with bot more challenging - Currently the computer randomly picks a spot on the board to play. This can be improved upon by implenting the minimax algorithm.
The project will be deployed to GitHub Pages using the following steps...
- Log in to GitHub and locate the GitHub Repository
- In the GitHub repository, navigate to the Settings tab
- Scroll down the Settings page until you locate the Pages Section.
- Click on the Pages tab close to the bottom of the page
- Under Source, click the dropdown called
none
and selectmain
Branch. - Click "Save" button to save the changes and this will trigger the site deploymment automatically.
- When you refresh the page, you will see that the site has been successfully published, along with a link to the published site.
- Log in to GitHub and locate the GitHub Repository
- From the top right menu buttons, locate and click the "Fork" Button.
- You should now have a copy of the original repository in your GitHub account.
- Log in to GitHub and locate the GitHub Repository
- Click the
Code
dropdown arrow button just above the list of files. - 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/valerieoni/tictactoe
- Press Enter. Your local clone will be created.
$ git clone https://github.com/valerieoni/tictactoe
> 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.
- MDN Web Docs : For Pattern Validation code. Code was modified to better fit my needs and to match an Irish phone number layout to ensure correct validation. Tutorial Found Here
- The icon used for this project is sourced from Icon finder
-
My Mentor, Narender Singh for continuous support and great feedback.
-
Tutor support at Code Institute for their support.