|
1 | | -# Rock Paper Scissors challenge |
| 1 | +# Rock, Paper, Scissors challenge |
2 | 2 |
|
3 | | -Project was scaffolded using [nx](https://nx.dev/) and is based on React, TypeScript and MUI. |
| 3 | +## Introduction |
| 4 | + |
| 5 | +The repository acts as a springboard to get you started with creating the classic game: [Rock, Paper, Scissors][rps]. |
| 6 | + |
| 7 | +## The Challenge |
| 8 | + |
| 9 | +You work in a game company, and you're hacking with some people on recreating the school playground classic "[Rock, Paper, Scissors][rps]" on the Web. |
| 10 | + |
| 11 | +A skeleton of a UI has been created, but it doesn't work - it always returns `draw` for the outcome. |
| 12 | + |
| 13 | +### Requirements |
| 14 | + |
| 15 | +1. **Please commit early, commit often** - it's helpful to see the 'steps' taken to complete the challenge. |
| 16 | +1. **Limit time spent to 1 hour _maximum_** - Even if the code is incomplete. |
| 17 | +1. **Implement the game, as you see fit** - The UI should report `player-1-wins`, `player-2-wins`, `draw` 'Outcome' as appropriate, based on the input given (and the rules of "[Rock, Paper, Scissors][rps]"). |
| 18 | + |
| 19 | +The code will then be used as a conversation starter at your interview. |
| 20 | + |
| 21 | +⚠ Ideally, please keep _your_ repository private. |
| 22 | + |
| 23 | +--- |
| 24 | + |
| 25 | +## Getting Started |
| 26 | + |
| 27 | +This project was scaffolded using [nx](https://nx.dev/) and is based on React, TypeScript and MUI. |
4 | 28 |
|
5 | 29 | Unit tests can be added using Jest and React Testing Library, integration tests via Cypress. |
6 | 30 |
|
7 | | -Use latest Node.js LTS v18.x e.g. via [nvm](https://github.com/nvm-sh/nvm) |
| 31 | +Using latest Node.js LTS `v18.x` (e.g. via [nvm](https://github.com/nvm-sh/nvm)) |
8 | 32 |
|
9 | 33 | Install dependencies: |
10 | 34 |
|
@@ -35,3 +59,5 @@ Run Cypress tests: |
35 | 59 | ```shell |
36 | 60 | npx nx e2e ui-e2e |
37 | 61 | ``` |
| 62 | + |
| 63 | +[rps]:https://en.wikipedia.org/wiki/Rock_paper_scissors |
0 commit comments