Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/azganoth/tic-tac-toe

This is a solution to the "Tic Tac Toe" challenge on Frontend Mentor.
https://github.com/azganoth/tic-tac-toe

Last synced: 11 days ago
JSON representation

This is a solution to the "Tic Tac Toe" challenge on Frontend Mentor.

Awesome Lists containing this project

README

        

# Frontend Mentor Challenge: Tic Tac Toe

This is a solution to the [Tic Tac Toe challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/tic-tac-toe-game-Re7ZF_E2v).

## Table of contents

- [Overview](#overview)
- [Additional](#additional)
- [Development](#development)
- [Stack](#stack)
- [Tools and Workflow](#tools-and-workflow)
- [Resources](#resources)
- [Showcase](#showcase)
- [Links](#links)
- [Screenshots](#screenshots)
- [Author](#author)

## Overview 📋

Users should be able to:

- View the optimal layout for the game depending on their device's screen size
- See hover states for all interactive elements on the page
- Play the game either solo vs the computer or multiplayer against another person
- **Bonus 1**: Save the game state in the browser so that it’s preserved if the player refreshes their browser
- **Bonus 2**: Instead of having the computer randomly make their moves, try making it clever so it’s proactive in blocking your moves and trying to win

### Additional

- Modified SVG icons to use currentColor and viewBox for better scaling.
- Implemented mid-game quit functionality.
- Added support for Portuguese (Brazil) locale.

## Development 🛠️

### Stack

- **HTML5**
- **CSS3**
- **TypeScript**
- **SASS**
- **React**
- **Vite**
- **Vitest**
- **Testing Library**

### Tools and Workflow

- **GitHub Actions**
- **GitHub Pages**
- **Prettier**

### Resources

- [SVGR](https://react-svgr.com/) - Import SVG icons as react components.

## Showcase 🖼️

### Links

- Solution URL: [Mobile-first solution using React, SASS and Vite](https://www.frontendmentor.io/solutions/mobile-first-solution-using-react-sass-and-vite-9BJSCneLuA)
- Live Site URL: [Tic Tac Toe](https://azganoth.github.io/tic-tac-toe/)

### Screenshots

#### New game

![](./screenshot_1.jpeg)

#### Game

![](./screenshot_2.jpeg)

## Author ✍️

- Website - [Ademir José Ferreira Júnior](https://github.com/Azganoth)
- Frontend Mentor - [@Azganoth](https://www.frontendmentor.io/profile/Azganoth)