Skip to content

Finding Falcone is a Geektrust front-end coding challenge, where a user needs to select 4 planets out of 6 and assign provided space vehicles to search for Queen Falcone. Upon selecting planets and assigning vehicles the user can view the result (a game of chance) provided by an api.

Notifications You must be signed in to change notification settings

osSidd/findingFalcone

Repository files navigation

Finding Falcone - Geektrust coding challenge

Finding Falcone is a Geektrust front-end coding challenge, where a user needs to select 4 planets out of 6 and assign provided space vehicles to search for Queen Falcone.

Upon selecting planets and assigning vehicles the user can view the result (a game of chance) provided by an api.

Install and run the project

  1. cd into the directory 'FindingFalcone'.

  2. run the command 'npm install'
    (to install all the required packages)

  3. run the command 'npm run dev'
    (this command runs a local development server)

How to play the game

  • First select 4 planets by clicking them
  • Drag and drop a vehicle image onto a planet images to assign the vehicle to the planet
  • Upon selecting 4 planets and assigning vehicles to each, click 'show result' button to see result
  • If no vehicle is assignable to a planet, hit reset button

NOTE - Vehicles cannot be dropped on:

  • planets which are not selected
  • planets which are farther away than the maximum distance the vehicle can travel
  • planets which already have a vehicle assigned

Technologies used

  • React
  • Typescript
  • SCSS
  • Webpack

Learning

I used typescript to build this app, thus it provided nice opportunity to learn about some of its features like making custom types and using typescript in React.

Also I learned about using drag and drop functionality without using any external library.

Tasks Left

  • Adding tests (RTL, JEST, Enzyme)
  • Find solution for deployment so that dist folder doesn't needs to be uploaded on git repo
  • Deploying (current version not working)
  • code splitting not working in deployed app
  • tweak webpack.config.js for production build

About

Finding Falcone is a Geektrust front-end coding challenge, where a user needs to select 4 planets out of 6 and assign provided space vehicles to search for Queen Falcone. Upon selecting planets and assigning vehicles the user can view the result (a game of chance) provided by an api.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published