Code Monkey home page Code Monkey logo

game-recruitment's Introduction

Game for interviews

Most interview are borning or/and stressfull. Let's do interview in other way... by playing a game.

wesnoth-tiles.png

Getting Started

Game checks how candidate is confortable with modern web technologies. We might show a game to candidate, and ask some simple questions.

Example questions

  • Our client reports that he could not move his character to city...
  • How you would redesign UI?
  • There is big security leak in the app.. can you find it?

What to look for

  • Look in candidate know how to use browser debugging tools
  • KnowHow about server responses codes
  • KnowHow about websockets, canvas, angular
  • Candidate should be able to find window.scope
  • Candidate might be able to point our couple bad style points in the frontend app

Developing

  • Run npm install to install server dependencies.

  • Run bower install to install front-end dependencies.

  • Run mongod in a separate shell to keep an instance of the MongoDB Daemon running

  • Run npm install --global gulp

  • Run gulp serve to start the development server. It should automatically open the client in your browser when ready.

Build & development

Run gulp build --force for building and gulp serve --force for preview. set -x NODE_ENV test if you want bypass mandatory tokken

Testing

Running npm test will run the unit tests with karma.

Playing

One plays accessing API:

  • curl localhost:9000/api/status

  • curl localhost:9000/api/actions/move

  • legal move (green tile) curl -X POST 'localhost:9000/api/actions/move' -H "Content-type: application/json" -d '{"to":{"q": -3, "r": 3}}'

  • illegal move (to sea faring) curl -X POST 'localhost:9000/api/actions/move' -H "Content-type: application/json" -d '{"to":{"q": -6, "r": -5}}'

  • new movement api: valid directions are [ 'n', 'ne', 'se', 's', 'sw', 'nw' ]

curl -X POST 'localhost:9000/api/actions/move' -H "Content-type: application/json" -d '{"to":"up"}'

curl -X POST 'localhost:9000/api/actions/move' -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJfaWQiOiI1NzBkMGFkMGQxMzU3OGQ4NDU1NmViYTkiLCJyb2xlIjoidXNlciIsImlhdCI6MTQ2MDQ3MjU4MiwiZXhwIjoxNDYwNDkwNTgyfQ.YCmURip3xMhV8ySmydV1tVOBIGT2xP90tvXIldTOAZ4' -H 'Cookie: XSRF-TOKEN=ATUdw5PoTAo31JESi1njSjCiw1niFh4wuz4EE%3D; connect.sid=s%3AYWdCpGXQDq4zfAiM0TV_V9rQ_-8vdMDI.EBHcz1nUkZuetMEbZvaz0OnFXILasRKYUcciNP%2FeoIg; token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJfaWQiOiI1NzBkMGFkMGQxMzU3OGQ4NDU1NmViYTkiLCJyb2xlIjoidXNlciIsImlhdCI6MTQ2MDQ3MjU4MiwiZXhwIjoxNDYwNDkwNTgyfQ.YCmURip3xMhV8ySmydV1tVOBIGT2xP90tvXIldTOAZ4'\ -H 'X-XSRF-TOKEN: ATUdw5PoTAo31JESi1njSjCiw1niFh4wuz4EE=' -H "Content-type: application/json" -d '{"to":"n"}'

game-recruitment's People

Contributors

chrismath2004 avatar egintowt avatar kichooo avatar syzer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

game-recruitment's Issues

new level modal

when user gains a level you should get notification,
and much XP

Docker

can you add container so we would run local db?

Wrong version of lodash

Was somethign changed lately? We seem not to have _.contains anymore in our lodash.

ReferenceError: includes is not defined
at model.canSeeThrough (/home/kich/workspace/game-recruitment/server/api/status/tile.model.js:126:28)
at filterBySight (/home/kich/workspace/game-recruitment/server/api/status/tile.model.js:161:24)
at /home/kich/workspace/game-recruitment/server/api/status/tile.model.js:132:24
From previous event:
at Function.TileSchema.statics.findNearbyVisible (/home/kich/workspace/game-recruitment/server/api/status/tile.model.js:132:10)
at myStatus (/home/kich/workspace/game-recruitment/server/api/status/status.controller.js:7:10)
at Layer.handle as handle_request
at next (/home/kich/workspace/game-recruitment/node_modules/express/lib/router/route.js:131:13)
at next (/home/kich/workspace/game-recruitment/node_modules/composable-middleware/lib/composable-middleware.js:40:9)
at /home/kich/workspace/game-recruitment/server/auth/auth.service.js:36:21
From previous event:
at Middleware_Common_Object. (/home/kich/workspace/game-recruitment/server/auth/auth.service.js:31:18)
at next (/home/kich/workspace/game-recruitment/node_modules/composable-middleware/lib/composable-middleware.js:59:18)
at /home/kich/workspace/game-recruitment/node_modules/express-jwt/lib/index.js:122:7
at /home/kich/workspace/game-recruitment/node_modules/express-jwt/lib/index.js:114:13
at DEFAULT_REVOKED_FUNCTION (/home/kich/workspace/game-recruitment/node_modules/express-jwt/lib/index.js:7:61)
at checkRevoked (/home/kich/workspace/game-recruitment/node_modules/express-jwt/lib/index.js:107:9)
at fn (/home/kich/workspace/game-recruitment/node_modules/async/lib/async.js:638:34)
at Immediate._onImmediate (/home/kich/workspace/game-recruitment/node_modules/async/lib/async.js:554:34)
at tryOnImmediate (timers.js:534:15)
at processImmediate as _immediateCallback

3 quests

  1. Move anywhere
  2. Find hut
  3. Explore all tiles in the map. *

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because we are using your CI build statuses to figure out when to notify you about breaking changes.

Since we did not receive a CI status on the greenkeeper/initial branch, we assume that you still need to configure it.

If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with greenkeeper/.

We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

Progression bar

make sure there is some prograssion bar, in order to get a new avatar

Add monsters

We need to design skill set.
Also mechanics of player should be discussed

yes cat tokken

nobody likes this character for some reason... lets find nice tokken ...

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.