HF RL Explorer

chess clocks: implement stub

chess clocks: implement stub: a task in smol-software-harbor (Harbor dataset). press() in clock.js is a stub. Implement it as the comment at the top of the file describes: pressing the button adds the increment to the player whose turn it is and passes the turn to the other player. After a flag…

The task

`press()` in `clock.js` is a stub. Implement it as the comment at the top of the file describes: pressing the button adds the increment to the player whose turn it is and passes the turn to the other player. After a flag has fallen (`flagged` is not `null`) pressing does nothing. Run `node --test test/*.test.js`.

Part of efederici/smol-software-harbor.