Skip to content

In Game of Drones there are two players trying to conquer each other. Players take turns to make their move, choosing Paper, Rock or Scissors. Each move beats another, just like the game “Paper, rock, scissors”.

lgutie16/GAME

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Technical Overview

This project was created using Reactjs and Firebase Database.

Frontend structure is as follows, according to Reactjs principles:

The First Screen just how one component called registration, which has a embedded form.

Alt text

The Second Screen contains three components:

-game
  --gamemove
    ---(embedded html)
    ---gameresult
    ---gameresult

Alt text

As you can see there is a reused component, gameresult, which is used to display the round winner and the winners of the games.

Folder Structure

GAME/
  README.md
  node_modules/
  package.json
  public/
    index.html
    favicon.ico
  src/
    components/
      game.js
      gamemove.js
      gameresults.js
      registration.js
    App.css
    App.js
    App.test.js
    index.css
    index.js

For the project to build, these next files must exist with exact filenames:

  • public/index.html is the page template;
  • src/index.js is the JavaScript entry point.

Available Scripts

In the project directory, you can run:

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.

npm test

Launches the test runner in the interactive watch mode.
See the section about 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!

Instruction to run this Project

Follow the next instructions to run this project localy

 git clone https://github.com/lgutie16/GAME.git [Clone the project in your selected directory]
 cd GAME                                        [Go inside the main source directory]
 npm start                                      [Run script descripted above]

About

In Game of Drones there are two players trying to conquer each other. Players take turns to make their move, choosing Paper, Rock or Scissors. Each move beats another, just like the game “Paper, rock, scissors”.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published