Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voidpet Interview Challenge

You will be making a change to a simplified version of our hatch screen.

In our game if you have 5 mystery egg fragments, you can trade them in for 1 mystery egg.

IMG_7850

We want you to add a new button state for when the player has 5 of more mystery egg fragments that allows them to instantly hatch an egg by pressing the button (instead of the current flow which is first press fragments which gives you an egg then press the button to hatch an egg).

This is what it looks like when you have an egg.

IMG_7861

Update the backend hatchEggMutation to allow players to hatch a mystery egg with 5 fragments (rather than doing 2 api calls).

ItemId.ts and schema.ts may be helpful for figuring out how to give yourself fragments/eggs for testing.


Also make the hatch 10 button yellow (you can use earth colors variable) if the player has greater than 100 of that egg.


Make a PR with both of these changes in it.

How to setup the repository

Root

  • yarn install (this is yarn workspace)

Shared folder

  • yarn build

API folder

  1. Have PostgreSQL running locally
    1. Create database called voidpet-lite
    2. You’ll need a user with the username/password set to postgres
  2. Have Redis running locally
  3. Create a .env file see .env.example (you can stick dummy values in)
  4. yarn dev

App folder

  1. yarn start

Note: you will need to do an eas build.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages