version: 'v1.0.6'
For an interview, i was asked to dev this game with thoses users story:
-
Front
As a frequent games player,
I'd like to play rock, paper, scissors
So that I can spend an hour of my day havind fun
Acceptance Criteria:
- Can I play Player vs Computer?
- Can I play Computer vs Computer?
- Can I play a different game each time?
-
Back
Technical Constraints:
- Doesn't necessarly need a flashy GUI (can be simple)
- Use
PHP(Scala or Javascript) - Libs / external modules should only be used for tests
- Using best in industry agile engineering practices
Best if we use TDD, code coverage, copy and paste detection, designs (DDD, or design patterns).
So, i tried to use my "code-sens" to doing my best in less than one day, starting from scratch.
You will find here, an example of TDD, with a lot of tests.
$ git clone https://github.com/Stayfi/rock-paper-scissors-nodejs.git
Go to the project directory and do
$ npm install
$ npm run start
Open your browser to : http://localhost:3000
$ npm run test
$ npm run coverage
$ npm run jscpd