Evaluates the ability to implement a complete chess move generator using only regular expression…
Evaluates the ability to implement a complete chess move generator using only regular expression…: a task in Terminal-Bench 2.1 (Harbor git-repos dataset) (Harbor dataset). Write a JSON file called /app/re.json that is a list of regex, replacement pairs. When executed in order with the Python code…
The task
Write a JSON file called /app/re.json that is a list of [regex, replacement] pairs. When executed in order with the Python code ``` def all_legal_next_positions(fen): for pattern, repl in json.load(open("/app/re.json")): fen = re.sub(pattern, repl, fen) return fen.split("\n") ``` this function should return the FEN…
Part of qingyu-lyq/terminal-bench-2.1.