| { |
| "spa": "tic-tac-toe", |
| "id": "block-computer-win", |
| "name": "Block Computer Win", |
| "description": "Block the computer from winning by placing X in the critical position", |
| "environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/tic-tac-toe/index.html\"}", |
| "initial_state": "{\"board\": [\"O\", \"O\", null, \"X\", null, null, null, null, null], \"currentPlayer\": \"X\", \"winner\": null, \"gameOver\": false, \"isComputerTurn\": false}", |
| "instructions": "{\"user_prompt\": \"The computer (O) has two in a row at the top! Block the computer from winning by placing your X in the empty square at position 2 (top-right corner) to prevent three O's in a row.\", \"success_criteria\": \"X must be placed in position 2 (index 2) to block the computer's winning move in the top row.\"}", |
| "reward_function": "_validate_block_computer_win", |
| "valid_target_states": "", |
| "max_steps": 2, |
| "timeout_seconds": 30, |
| "metadata": "{\"category\": \"games\", \"difficulty\": \"easy\", \"action\": \"block_win\", \"strategy\": \"defensive\"}" |
| } |