GithubHelp home page GithubHelp logo

exercise-tictactoe-react's Introduction

TicTacToe With React

Time to start building cool stuff, let's code our first game!

TicTacToe Preview

๐ŸŒฑ How to start this project

Do not clone this repository.

The first step to start coding is cloning the react.js boilerplate on your local computer or opening it using gitpod.

a) If using Gitpod you can clone the boilerplate by clicking here.

b) If working locally, type the following command from your command line: $ git clone https://github.com/4GeeksAcademy/react-hello.

๐Ÿ’ก Important: Remember to create a new repository, update the remote (git remote set-url origin <your new url>), and upload the code to your new repository using add, commit and push.

๐Ÿ“ Instructions

Create a Tictactoe in React.js just like this one. Remember to follow the recommended workflow to start coding:

  1. Design your sitemap: How many pages/views?
  2. Designing your wireframe: What components and where?
  3. Start coding your components only rendering "Hello world" on each of them (to make sure they work).
  4. Create a list of all the possible user and system interactions (events) that occurs during runtime (for example: The user clicks on a button to start the game)
  5. Create a javascript function that will handle each of those events.
  6. Console.log on each of those functions to make sure they are being called.
  7. Continue... watch the video if you have any other doubts.

Concepts you will learn:

  • State of the components (global variables)
  • Props
  • Render method
  • The function for checking the winner is a great learning algorithm

Video Tutorial:

Here is a video explaining how to do it: https://www.youtube.com/watch?v=MQonrbY8Ezg&list=PLx0T51ydRO_7qabdLlT69keo68WmbXkrB

exercise-tictactoe-react's People

Contributors

alesanchezr avatar elviraqdp avatar tommygonzaleza avatar kant avatar lorenagubaira avatar navarroseb 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.