Skip to content

Commit

Permalink
First commit: Solutions added
Browse files Browse the repository at this point in the history
  • Loading branch information
harman052 committed Nov 12, 2018
1 parent c02b130 commit 34a29c8
Show file tree
Hide file tree
Showing 9 changed files with 402 additions and 265 deletions.
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
}
]
}
33 changes: 4 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Solutions to additional problems given in React's "tic tac toe" tutorial.

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

## Available Scripts
Expand All @@ -12,33 +14,6 @@ Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.<br>
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.<br>
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.<br>
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.<br>
Your app is ready to be deployed!

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

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
### `Useful links`

To learn React, check out the [React documentation](https://reactjs.org/).
Tutorial page: [React documentation](https://reactjs.org/tutorial/tutorial.html).
32 changes: 0 additions & 32 deletions src/App.css

This file was deleted.

28 changes: 0 additions & 28 deletions src/App.js

This file was deleted.

9 changes: 0 additions & 9 deletions src/App.test.js

This file was deleted.

92 changes: 79 additions & 13 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,80 @@
body {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
}
font: 14px "Century Gothic", Futura, sans-serif;
margin: 20px;
}

.active {
font-weight: 600;
}

.inactive {
font-weight: normal;
}

ol, ul {
padding-left: 30px;
}

.board-row:after {
clear: both;
content: "";
display: table;
}

.status {
margin-bottom: 10px;
}

.square {
background: #fff;
border: 1px solid #999;
float: left;
font-size: 24px;
font-weight: bold;
line-height: 34px;
height: 34px;
margin-right: -1px;
margin-top: -1px;
padding: 0;
text-align: center;
width: 34px;
}

.square:focus {
outline: none;
}

.kbd-navigation .square:focus {
background: #ddd;
}

.winningSquares {
color: #000;
background: rgb(142, 252, 99);
}

.draw {
text-align: center;
width: 102px;
height: 102px;
background-color: #ddd;
padding: 20px;
}

.win {
text-align: center;
}

.reset {
padding: 5px;
}

.game {
display: flex;
flex-direction: row;
}

.game-info {
margin-left: 20px;
}

Loading

0 comments on commit 34a29c8

Please sign in to comment.