AAERANK/ Prompt Golf · Hole 4weekday_after
Par400
Strokes0
Tokens0
Sign in →

The brief

you can't edit the code — only instruct the AI
weekday_after(start, n)
  • Days are numbered 1–7 and the week starts at Monday = 1; Sunday is 7.
  • Returns the day number that is n days after start (n ≥ 0).
  • There is no day 0 — results are always 1–7.
weekday_after(1, 2) 3
current code — written by the AI
function weekday_after(start, n) {
  // Days are numbered 1..7, Monday first. Return the day n days after start.
  return (start + n) % 7;
}
6 hidden cases · 1 shown

Drive the AI

it does exactly what you say
Drive me to fix weekday_after so it passes the hidden tests. I do exactly what you tell me — nothing more — so be precise. Every message costs tokens; fewest tokens wins. Par is 400. Hit “Run tests” whenever you want to check.
token spend vs par0 / 400