Giter Club home page Giter Club logo

xs---os's Introduction

Logo

Tic Tac Toe

Tic Tac Toe is a simple classic game, two-players game on a 3x3 grid. Players take turns marking an X or Os on an empty square, aiming for three in a row horizontally, vertically, or diagonally. The game ends when a player wins or when the grid is full, resulting in a draw. It’s a quick, easy game and people of all ages enjoy it.

App Screenshot

Features

Xs & Os

Xs & Os is a simple and classic implementation of the Tic Tac Toe game. Enjoy a quick and strategic two-player game on a 3x3 grid, aiming to achieve three in a row.

Features

Home page

  • Game Explanation: Learn the basics of Tic Tac Toe and its objective through a clear and concise explanation.

  • Game Rules: Understand the rules of the game, where players take turns placing Xs and Os to create a row of three of their marks.

  • Play Game: Dive into the fun! Click the "Play Game" button to start your Tic Tac Toe adventure.

Footer

  • The footer includes links to our social media, making it easy to stay updated on our activities.

footer

Full responsive

  • Whether on a laptop, tablet, or mobile phone, you can experience Tic Tac Toe with full responsive designs that fits different devices.

full_responsive

Screenshots

  • Here are some screenshots of what the game looks like before and after you start playing the game.

game-started

Acknowledgments

  • Font Awesome Icons: Utilized Font Awesome for social media icons.

Remaining Features to Add

  • Additional Feature Suggestion.

Testing

Validator Testing

HTML

Document checking completed. No errors or warnings to show. The Document was passing the Html checker though the official website https://validator.w3.org/#validate_by_upload/ W3C validator

CSS

Two errors were found when passing the CSS checker through the official website https://jigsaw.w3.org/css-validator/#validate_by_upload (Jigsaw) validator.

  • Error 1 on landing page: Imported style sheets are not checked in direct input and file upload modes.

  • Error 2 on game page: Imported style sheets are not checked in direct input and file upload modes.

  • Procedure taken: this warnings themselves are not a critical issue.

JavaScript

Two errors were found when passing the CSS checker through the official website https://codebeautify.org/ (Code beautify) validator. I did googled it and I found that there might be an issue with the tool I'm using for validation.

Js-validator

Manual testing

  • The site was tested on different browsers: Safari, Firefox and Chrome.
  • The DevTools confirmed that the page looks good and is functional on different screen sizes.
  • I ensured that all buttons, the timer and the click actions work.
  • I ensured that the page is readable.
Feature Expect Action Result
Player makes a move The clicked cell should be updated with either X or O Click on an empty cell The clicked cell is updated, and the turn switches to the other player
Player wins WDisplay a winning message indicating the winning player Make moves to form a winning pattern (e.g., three X's or O's in a row) Display winning message, and the game resets for a new round
Game is a draw Display a draw message indicating that the game ended without a winner Play until the board is full with no winner Display draw message, and the game resets for a new round
Enabling Computer's Turn After enabling the computer's turn, the game should proceed with the computer making a move Click the "Computer" button during the game The game status updates to "Playing against Computer," and the computer makes a move after the player's second move
Disabling Computer's Turn After disabling the computer's turn, the game should continue with only player moves Click the "Computer" button again to disable computer turns The game continues with the player making moves, and the computer no longer participates
Event Listener Handling Event listeners for player moves should be removed and re-added appropriately Click the "Computer" button to toggle computer turns during the game Event listeners are adjusted correctly, ensuring smooth gameplay without interruption
  • Procedure taken: Errors not solved.

Deployment

The site was deployed to GitHub. Here's how I did it:

  • From the "Settings" tab in Github repository and from the "Code and automation" on left side navigation you choose “pages”.

  • From "Build and deployment" section and "Source" drop-down menu, select the Main branch.

  • After selecting the Main branch the page will be self-refreshed and then you will see a ribbon confirming the successful deployment.

Framework, Libraries and Programs

  • no frameworks and libraries were used.

  • Google fonts: Was used for integrating fonts.

  • GitHub: Was used to store and deploy the project site.

  • Codeanywhere 'Gitpod': Was used to write the code and commit it to GitHub.

  • Fontawesome: Was used for the social media icons.

  • W3C HTML Validator: Was used to validate the CSS code.

  • W3C CSS Validator 'Jigsaw': Was used to validate the CSS code.

  • codebeautify : Was used to validate the JS code.

  • W3C CSS Validator 'Jigsaw': Was used to validate the CSS code.

  • DevTools: Were used to inspect the code during the development process and to check the accessibility.

Credits

Content

Media

Extra help

  • Youtube channel:

The Queen's Pawn https://www.youtube.com/watch?v=n6gzxTsbHLc&t=227s

Web Dev Simplified https://www.youtube.com/watch?v=Y-GkMjUZsmM

xs---os's People

Contributors

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