Giter Site home page Giter Site logo

jgabitto / react-assignment-1-jgabitto Goto Github PK

View Code? Open in Web Editor NEW

This project forked from code-the-dream-school/react-assignment-1-jgabitto

0.0 0.0 0.0 889 KB

react-assignment-1-jgabitto created by GitHub Classroom

HTML 16.67% JavaScript 76.33% CSS 7.00%

react-assignment-1-jgabitto's Introduction

Now that you know how to create with React. It is time to create a game. We are going to create Tic tac toe this time.

This project was bootstrapped with Create React App.

We have the folder setted up for you.

In the project directory, you need to run:

npm install

download the dependencies

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser. The page will reload if you make edits.
You will also see any lint errors in the console.

Here you have a Demo

Requirements:

  • Welcome page: with the Logo and the 'start' button which will disappears when the user clicks it.

  • After clicking the 'start' button the program have to aks the players their names. The program has to validate the inputs in case they are empties

  • After the inputs the program displays the board game with the players names and 2 button. 'Reset' and 'New Game':

'Reset button' cleans the board and remains the players names. 'New Game button' starts a new game with new players

  • finally in case there is a winner. The program must display the winner's name and the same two previous buttons.

To resolve this Game you just need to know the basics of React and react Components. Remember to use conditional statements to render the components.

The project has a src folder that contains a component 5 components:

  • App.js -> main component which is rendered in the DOM
  • Board.js -> here is where you will create the board 3x3
  • Cell.js -> this is the component that represent a square of the board
  • Header.js -> this is the component that displays the logo and start button at the beginning
  • Info.js -> and this component is the one you will use to create the inputs for the players's name

those are the component we think are fundamentals for the development of the game, but feel free to add more components to make it your own style.

We also provided you with a set of images you need in the folder images and a group of css rules in the file index.css. We added Bootstrap CDN which means you can use bootstrap classes. You can create your own css style and images.

Create issues on the link below on the parent repo if you are stuck and want to talk about it. You can paste code, tag people and refer to other issues there. Please use it! It will be helpful for mentors and future students to see where common problems are. Link here: https://github.com/Code-the-Dream-School/Front-end-React-week-1/issues

Happy coding!!

react-assignment-1-jgabitto's People

Contributors

mariandreamv avatar jgabitto avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.