CiscoMerchan / Noughts_and_Crosses

This game was created to help me practice JavaScript and manipulate the DOM while honing my vanilla JavaScript skills in rendering dynamic page interactions without altering the browser by activating and deactivating CSS codes. Overall, the project allowed me to develop my skills while creating an engaging and interactive game.

Home Page:https://ciscomerchan.github.io/Noughts_and_Crosses/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Noughts & Crosses Game

Welcome to my Noughts & Crosses game! This game was created to help me practice JavaScript and improve my skills in manipulating the DOM.

To develop this game allowed me to practice function() and workflow in a way that the app follows a sequence of instructions to make sure that every step is checked before the next step to avoid problems in the continuity of the game.

As well as to practice in vanilla JavaScript how to render dynamic interaction of the page without changing the browser by activating and deactivating CSS codes.


noughtsaAndCrosses


How to Play

The game is very simple and easy to play. All you have to do is click on any of the <td> tags to make your move. Once you make your move, the 'X' image will be rendered on the board, and the computer player will automatically make its move by using the Math.random() function, rendering the 'O' image.

The game continues until one player manages to place three of their symbols in a row, either horizontally, vertically, or diagonally, or until the board is full, resulting in a tie game.

Getting Started

Prerequisites

To run this game, you need a modern web browser that supports HTML, CSS, and JavaScript.

Installation

  1. Clone the repository to your local machine.
  2. Open the index.html file in your web browser.
  3. Start playing!

Development

If you want to contribute to this project or use it to practice your own JavaScript skills, feel free to fork the repository and make your changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This game was created to help me practice JavaScript and manipulate the DOM while honing my vanilla JavaScript skills in rendering dynamic page interactions without altering the browser by activating and deactivating CSS codes. Overall, the project allowed me to develop my skills while creating an engaging and interactive game.

https://ciscomerchan.github.io/Noughts_and_Crosses/


Languages

Language:CSS 45.7%Language:JavaScript 27.2%Language:HTML 27.2%