HF RL Explorer

chess clocks: edge case

chess clocks: edge case: a task in smol-software-harbor (Harbor dataset). When a player's time runs out, elapse() in clock.js lets the remaining time go negative and never records the fallen flag. Time must stop at 0, flagged must become the index of that player, and once a flag has fallen the…

The task

When a player's time runs out, `elapse()` in `clock.js` lets the remaining time go negative and never records the fallen flag. Time must stop at 0, `flagged` must become the index of that player, and once a flag has fallen the clock must not run any more. Run `node --test test/*.test.js`.

Part of efederici/smol-software-harbor.