dzakaathif's picture
PR #9
23349a0 verified
raw
history blame
1.13 kB
{
"spa": "tic-tac-toe",
"id": "win-game",
"name": "Win Tic-Tac-Toe Game",
"description": "Successfully win a game of tic-tac-toe by getting three X's in a row before the computer",
"tier": "free",
"environment": "{\"type\": \"url\", \"path\": \"https://dojo-spas-production.s3.us-east-1.amazonaws.com/tic-tac-toe/index.html\"}",
"initial_state": "{\"board\": [\"O\", \"O\", \"X\", \"X\", \"X\", null, \"O\", \"O\", null], \"currentPlayer\": \"X\", \"winner\": null, \"gameOver\": false, \"isComputerTurn\": false}",
"instructions": "{\"user_prompt\": \"Play tic-tac-toe and win the game by getting three X's in a row, column, or diagonal. You are X and the computer is O. Click on empty squares to make your moves.\", \"success_criteria\": \"The game must end with you (X) as the winner, indicated by the message 'You win!' appearing on screen.\"}",
"reward_function": "",
"valid_target_states": "[{\"winner\": \"X\", \"gameOver\": true}]",
"max_steps": 10,
"timeout_seconds": 120,
"metadata": "{\"category\": \"games\", \"difficulty\": \"medium\", \"player\": \"X\", \"opponent\": \"computer\"}"
}