This project us the https://github.com/R3SWebDevelopment/django_skeleton repository for project setting
This project is the back end (API) for the game mine swipper.
For reference the commits for this project start after commit e72a6ac6f6f4d288196612467260c1817bd4cdb4
This project is already setup to be executed on a docker container.
- db: Container that execute a postgres 9.6 or above database
- redis: Container with a default configuration for redis services
- celery: Container with a default configuration for celery services
- web: Container that run the django project
- sudo docker-compose build
- sudo docker-compose up -d
- sudo docker-compose exec web bash
- cd django_skeleton
- ./manage.py migrate
- ./manage.py push_fixtures
Front End: http://mineswipper.s3-website-us-west-2.amazonaws.com/ Back End: http://35.164.70.55:8000
Design and implement a documented RESTful API for the game (think of a mobile app for your API)Implement an API client library for the API designed above. Ideally, in a different language, of your preference, to the one used for the APIWhen a cell with no adjacent mines is revealed, all adjacent squares will be revealed (and repeat)Ability to 'flag' a cell with a question mark or red flagDetect when game is overPersistenceTime trackingAbility to start a new game and preserve/resume the old onesAbility to select the game parameters: number of rows, columns, and minesAbility to support multiple users/accounts
API test
We ask that you complete the following challenge to evaluate your development skills. Please use the programming language and framework discussed during your interview to accomplish the following task.
Develop the classic game of Minesweeper
- Create a Public repository
- Commit each step of your process so we can follow your thought process.
The following is a list of items (prioritized from most important to least important) we wish to see:
- Design and implement a documented RESTful API for the game (think of a mobile app for your API)
- Implement an API client library for the API designed above. Ideally, in a different language, of your preference, to the one used for the API
- When a cell with no adjacent mines is revealed, all adjacent squares will be revealed (and repeat)
- Ability to 'flag' a cell with a question mark or red flag
- Detect when game is over
- Persistence
- Time tracking
- Ability to start a new game and preserve/resume the old ones
- Ability to select the game parameters: number of rows, columns, and mines
- Ability to support multiple users/accounts
- URL where the game can be accessed and played (use any platform of your preference: heroku.com, aws.amazon.com, etc)
- Code in a public Github repo
- README file with the decisions taken and important notes
You do not need to fully complete the challenge. We suggest not to spend more than 5 hours total, which can be done over the course of 2 days. Please make commits as often as possible so we can see the time you spent and please do not make one commit. We will evaluate the code and time spent.
What we want to see is how well you handle yourself given the time you spend on the problem, how you think, and how you prioritize when time is insufficient to solve everything.
Please email your solution as soon as you have completed the challenge or the time is up.