A tic tac toe game that you can play with your robot.
How to add the Tic Tac Toe robot skill
- Load the most recent release of ARC (Get ARC).
- Press the Project tab from the top menu bar in ARC.
- Press Add Robot Skill from the button ribbon bar in ARC.
- Choose the Games category tab.
- Press the Tic Tac Toe icon to add the robot skill to your project.
Don't have a robot yet?
Follow the Getting Started Guide to build a robot and use the Tic Tac Toe robot skill.
How to use the Tic Tac Toe robot skill
This skill is a tic tac toe game that you can play with your robot. Configure script routines for many different options to add interesting behaviors as your robot kicks your butt at tic tac toe There are even Cheat Sheet commands for additional control of the game board. For example, set up speech recognition to play with your voice!
Main Window
1. Reset Game Button When pressed this will start a new game.
2. Robot Response Display This is where the robot will have a text based response.
3. Play Field Click where you would like to place your 'O'.
Configuration
1. Turn Scripts This is where you can add unique personality scripts to the robot when it's the robot's turn or your turn.
2. Win scripts This is where you can add unique personality scripts to the robot when it wins or when you win.
3. Draw script This is where you can add unique personality scripts to the robot when the game ends in a draw.
How To Use the Tic Tac Toe
Add a Tic Tac Toe skill to your ARC project (Project -> Add Skill -> Games -> Tic Tac Toe).
Read the Robot Response Display instructions.
Click where you would like to place your 'O' on the Play field.
Play the Tic Tac Toe game until it's end.
Click the Reset Game Button to start a new game.
The code I write for the robot wins script is duplicated in the draw script. One should be able to have different scripts. Can this error be fixed?
We have updated for the fix that you identified. Have fun!
That certainly fixed the script issue. I do find it freezes up occasionally when it's the robot's turn, particularly when using the middle position. Can't see any other pattern to cause it.
Can you provide more information to reproduce the "freezes up" scenario?
Freezing only occurs when it is the robot's turn - it says thinking, but fails to complete it's turn. I just kept playing, using the middle square more often than the corners and it froze a few times.