Tic-Tac-Toe-JS
In this project, I built a web app called ‘Tic Tac Toe’ based on the paper-and-pencil game of the same name.
Is a game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.
Screenshot
Live Demo
You can try it here.
:hammer: Built With
- HTML5,
- CSS3,
- Sass,
- Stylelint,
- Eslint,
- Jest,
- Webpack,
- JavaScript,
- Semantic-Ui,
- Visual Studio Code
:computer: Getting Started
To get a local copy up and running follow these simple example steps.
Prerequisites
Before you continue, be sure that you have installed:
- A Git GUI.
- An Integrated Development Environment.
- Chrome or Firefox. Internet Explorer is not supported.
Usage
To run the project:
- Clone the repository with Git.
- Open it with your IDE.
- Install the dependencies.
npm install
- Run the website.
npm run start
:gem: Features
- The user can add the players’ names.
- Verifies if the names of the players are different from each other.
- Displays players’ names and scores.
- The user can restart the game.
- It is not possible to place a move on a board cell that has already been taken by the other player.
- Shows who is the winner or if there is a tie.
:memo: Tests
- It contains unit tests for:
- GameManager.
- Gameboard.
- Player.
- To run the tests.
npm run test
:woman: Author
Rossiel Carranza
🤝 Contributing
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
- Fork this repository.
- Create a branch: git checkout -b
- Make your changes and commit them: git commit -m ‘'
- Push to the original branch: git push origin /
- Create the pull request.
Show your support
Give an ⭐️ if you like this project!
📝 License
This project is MIT licensed.