AACraiu / AACraiu/golfr_frontend
Number of holes
- 主要語言
- JavaScript
- 星號
- 1
- 分支
- 64
- PR 合併指標
- 30 天內沒有已合併 PR
描述
### Feature background
We would like to add support for a golf concept named **9/18-holes**.
Every golfer plays on a golf field named "course". These courses can be smaller or larger and we can divide them by their total number of holes supported: courses with **9 holes** and with **18 holes**.
9-hole | 18-hole
:-------------------------:|:-------------------------:
| 
When a user posts a score, we would like to know if it was played on a 9-holes or 18-holes course. Based on the number of holes, the score should be included in a range
- 9-hole - score should be >= 27 and < 90
- 18-hole - score should be >= 54 and < 180
### Technical process
- Create a database migration on backend to add a new field `number_of_holes` to the `scores` table.
- Include validation to allow only `9` and `18` as values.
- Include validation to allow score value based on the above intervals.
- Display `number_of_holes` value in frontend in places where we already show `total_score`
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。