/jogo-da-velha-js

This repository has a game of tic, made with the web languages JavaScript, HTML and CSS. It was made for university work.

Primary LanguageJavaScriptMIT LicenseMIT

❌Tic-tac-toe⭕

📚Preview

Tic-tac-toe is a paper-and-pencil game for two players, where one is the 'X' and the other is 'O'. The board is a 3x3 grid look a music sharp sign (#). In this case, will be use the browser. The game object is place three of equal symbol in a diagonal, horizontal or vertical row.

🎮🕹How to play

This version of the game is single player, so the player symbol is the 'X'. The player places his symbol on the board in his turn and after that it is the computer's turn, where his symbol is the 'O'. Whoever places three of the same symbols in a diagonal, horizontal or vertical line is the winner.

👨‍💻👩‍💻How Can I put in my machine?

For this project, will be need to have the extension 'Live server'.

  1. Clone this repository with the command:
git clone https://github.com/MateusProvensi/jogo-da-velha-js.git
  1. Now, you just need to press the right click mouse on 'index.html' and choose 'Open with Live Server'

  2. After the game ends, it is necessary to reload the page to start again

The code is in Brazilian Portuguese, because it's my primary language.

Have Fun