test-integration / tasks /tic-tac-toe /reset-game.json
dzakaathif's picture
PR #9
23349a0 verified
raw
history blame
1.28 kB
{
"spa": "tic-tac-toe",
"id": "reset-game",
"name": "Reset Tic-Tac-Toe Game",
"description": "Reset the tic-tac-toe game to its initial state by clicking the reset button",
"tier": "free",
"environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/tic-tac-toe/index.html\"}",
"initial_state": "{\"board\": [\"X\", \"O\", \"X\", \"O\", \"X\", \"O\", \"X\", \"O\", \"X\"], \"currentPlayer\": \"X\", \"winner\": \"X\", \"gameOver\": true, \"isComputerTurn\": false}",
"instructions": "{\"user_prompt\": \"The tic-tac-toe game is currently finished. Click the 'Reset Game' button to start a new game and return the board to its initial empty state.\", \"success_criteria\": \"The game must be reset to its initial state with an empty board, no winner, and the game not over. The reset button should clear all X's and O's from the board.\"}",
"reward_function": "",
"valid_target_states": "[{\"board\": [null, null, null, null, null, null, null, null, null], \"currentPlayer\": \"X\", \"winner\": null, \"gameOver\": false, \"isComputerTurn\": false}]",
"max_steps": 3,
"timeout_seconds": 30,
"metadata": "{\"category\": \"ui\", \"difficulty\": \"easy\", \"action\": \"reset\", \"interface_element\": \"button\"}"
}