docs(course): fix review findings in modules 00–05

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas WintherandClaude Opus 5.5 committed 2026-10-29 01:04:03 +01:00
1 parent 1d0b8c3a5c
commit ab8abaaa77
4 files changed
+66 -7

No files matched your search

+14
View File
@@ -335,6 +335,20 @@ Valid `x` values on a board of width 5 are 0, 1, 2, 3, 4. So `x >= 0` and `x < w
</details>
<details><summary>Exercise 3.2 (inBounds) — near-solution (try the others first)</summary>
```js
export const inBounds = (state, p) => p.x >= 0 && p.x < ___ && ___ && ___
```
```scala
def inBounds(state: GameState, p: Point): Boolean = p.x >= 0 && p.x < ___ && ___ && ___
```
```fsharp
let inBounds (state: GameState) (p: Point) : bool = p.X >= 0 && p.X < ___ && ___ && ___
```
</details>
<details><summary>Exercise 3.3 (turn) — nudge</summary>
Write the guard first: in which two situations does the function return `state` as it is? Then the one-field copy.