Giter VIP home page Giter VIP logo

tic_tac_toe_game's Introduction

Tic Tac Toe Game

This is a simple game of two players placing "x"'s and "o"'s in a three-by-three game grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner. This website is for people who like a simple, fun game to play with friends. It's also a simple strategy game which is good for children.

responsive

Features

The website displays a game of placing an "x" or an "o" on a provided grid, coloured red and blue respectively. It tells the player which turn it is by showing the "x" or "o" text below. The game keeps score of the number of wins for the "x" and "o" players.

Existing Features

  • The Landing Animation
    • Greeting of Tic Tac Toe text drops down and play button apears.
    • mainScreen
  • Game Board
    • Game board of three-by-three grid sits in the middle.
    • Space highlights grey when the mouse pointer goes over it.
    • gameplay
  • "x"'s and "o"'s
    • "x"'s are coloured red and "o"'s are coloured blue to make a clear distinction between both players.
    • xando
  • Turns
    • Below the game board, text depicts if it is player "x"'s turn or player "o"'s turn..
    • gameplay - turn
  • Scores
    • On each side of the game board, a total score for "x" and "o" wins are displayed.
    • xwin
    • owin
  • Play Again screen
    • This screen apears when the games has ended - either due to a win or a draw. The text relays which outcome has been reached.
    • winningscreen

Features Left to Implement

  • The website could benefit from a game against the computer as a selectable game mode.

Testing

I have tested the game's website on different browsers and devices. The main logic for the game works well and the score updates as intended. When the top three spaces are clicked, small white lines appear on the upper edge of the cell. However, these are not apparent on smaller screen sizes.

On some smaller devices, the animation display is not as smooth when compared with larger devices.

A lot of tests were run in order to establish the correct game logic and determine how to manipulate the node list.

Validator Testing

Unfixed Bugs

White lines appearing on top of the upper three cells once they have been clicked.

Deployment

  • The site was deployed to GitHub pages. The steps to deploy are as follows:
    • In the GitHub repository, navigate to the Settings tab
    • From the source section drop-down menu, select the Master Branch
    • Once the Master Branch has been selected, the page will be automatically refreshed with a detailed ribbon display to indicate the successful deployment. The live link can be found here - https://meija1.github.io/tic_Tac_Toe_Game/

Credits

Contents

  • The fonts for text in the website were taken from Google Fonts
  • Most of the game issues and bug fixes were found on Stack Overflow
  • Element class list methods were found on W3Schools
  • Methods for Node list were taken from Mozilla.Developer
  • Some problems with the code were asked on my profile here Stack Overflow
  • Some of the game logic was taken from my old Java project on IntelliJ IDEA

tic_tac_toe_game's People

Contributors

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