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

https://github.com/benmalcom/fairwinds-test


https://github.com/benmalcom/fairwinds-test

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm install`

To install the project dependencies before starting
the project.

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.

The page will reload when you make changes.\
You may also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

## Decisions

* This is a React project bootstrap with create-react-app
* I made the AI/Computer a little intelligent by predicting the winning cells of the human player. (The function can be optimized further)
* I made provision for when the game ends in a tie
* Used React hooks heavy to manage the game state as an encapsulation (Made the code cleaner)
* Added some tests
* Added prettier/eslint for code formatting