Skip to content

Commit 7899d56

Browse files
authored
v1.1
1 parent acbca23 commit 7899d56

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Enara Health • Backend Interview • Letters game
22

3-
_Version 1.0.2_
3+
_Version 1.1.0_
44

55
## This is a coding challenge for applicants interested in joining Enara Health as Backend Engineers.
66

@@ -28,10 +28,10 @@ The Enara Health team!
2828
- Write a server application that offers at least 3 endpoints:
2929
- Define the game's known dictionary (see bellow).
3030
- Start a new game by providing a board.
31-
- Validate a play.
31+
- Validate a play within a board.
3232
- You can use any boilerplate or start project. If you need help with this, let us know and we will share a quick-starter project promptly.
3333
- Keep your code **separated from the boilerplate**, so it's easier to review your work.
34-
- We prefer TypeScript or typed JavaScript, or GoLang.
34+
- We prefer TypeScript or typed JavaScript, or Ruby on Rails.
3535

3636
### Rules of the game
3737

@@ -64,17 +64,12 @@ Design an API to play, including endpoints to allow:
6464
- Implement a **single** test as an example of your testing strategy.
6565
- You can submit more tests if it is required to demonstrate different aspects of your strategy.
6666

67-
## Stretch goals
68-
69-
These are **not required**, but would make your submission stand out. You can implement none, one or all of these. If you do, let us know your decision so we evaluate them.
70-
71-
- Allow specific players to make plays.
72-
- It will track which words were already played by past plays, and won't allow the same player to submit the same word twice (even if it can be formed by sequences of different tiles).
73-
- Implement a new route to output the score: Valid plays score 1, 2, 4, 8, etc points for words with 3, 4, 5, 6, etc letters.
74-
7567
#### Example
7668

7769
In the following example, the app is initialized with the dictionary defined in [this json dictionary file](files/dictionary.json).
70+
```
71+
CURL ... # There is a REST request to initialize the dictionary.
72+
```
7873

7974
Then, a game is initialized with the board in the [test json file 1](files/test-board-1.json). If we would get to visualize the board, it would look like this:
8075

@@ -85,6 +80,10 @@ Then, a game is initialized with the board in the [test json file 1](files/test-
8580
M N O P
8681
```
8782

83+
```
84+
CURL ... # There is a REST request to start a new game.
85+
```
86+
8887
Then, a user submits the word "fab" formed by these tiles:
8988

9089
```
@@ -94,7 +93,11 @@ Then, a user submits the word "fab" formed by these tiles:
9493
M N O P M N O P M N O P
9594
```
9695

97-
The server should accept the word. If you implement the score system (stretch goal), the score for this play is **1 point**.
96+
The server should accept the word.
97+
98+
```
99+
CURL ... # There is a REST request to check if the play described above is valid.
100+
```
98101

99102
---
100103

@@ -106,14 +109,11 @@ Your deliverable should satisfy all these requirements:
106109

107110
- It should include _instructions on how to run_ (installing dependencies, starting it, etc) and it shouldn't have any obscure environment requirements.
108111

109-
- It should include _instructions on how to test_.
112+
- It should include _instructions on how to test_ (only **one test** is required).
110113

111114
- Describe your endpoints, and how to use them.
112115

113-
- It should be submitted using one of the following alternatives:
114-
1. bitbucket.org or github.com repo (_Note: Do NOT clone our repo because other candidates can find it_).
115-
1. Upload a compressed file somewhere and send us the URL.
116-
1. Email us your code.
116+
- It should be submitted via bitbucket.org or github.com repo (_Note: Do NOT clone our repo because other candidates can find it_).
117117
- _Note: Do NOT include `node_modules` or any other files that will be auto-generated_.
118118

119119
---

0 commit comments

Comments
 (0)