|
|||
|
Stick - A Connect Four Robot |
||
|
|
||
|
About the Robot |
|
|
|
This is a robot that was designed and built to play Connect-Four.
|
|
|
|
It didn't scan the board, and would randomly drop chips into the
game.
|
|
|
The Software Stick uses almost the same software as my other robot, Full Contact. The only difference is that all the robot control and logic is included in one program. |
|||
|
The Hardware The unique part about stick is the hardware. Stick was designed to use only the electronics from a single Mindstorms RIS. The whole robot only uses 2 motors, 2 touch sensors, and 1 light sensor. The key piece of this robot is the stick. It's made of three colors, white, gray, and black. A light sensor points at the stick, to read the color, and determine the current position. The black section is used to locate the "home" position, which is used whenever the arm is moving. The white and gray areas are used to determine if the number of chips in a column is odd or even. The robot doesn't actually even count the number of chips, but just tracks if the number of chips in a given column is odd or even, and if that value has changed. The stick can also be raised above the black "home" area to allow a chip to fall into the current column. One motor drives the arm in and out, to move to different columns on the game board. The second motor raises & lowers the stick. A touch sensor is used to count tabs, which allow the robot to move the arm in and out to the correct column. And, the other touch sensor is used so human players can indicate when they are done with their turn. |
|
|
Opponents Both Stick and Full Contact have been programmed so a wire can be connected directly from the motor port on one to a sensor port on the other. The motor port can be switched from float to brake and then back to float, which reads as a touch sensor press on the other RCX. This allows the robots to play each other, or a human opponent, without any changes in the programming or other hardware. |
|||
Comments So far, the biggest complement about this robot came from a friend who actually said he didn't like it! He said, "Until now I could justify not building a Connect Four robot, because I don't have tons of motors or sensors or RCXs. But you've shown it can be done with a single RIS, so now I'll have to come up with another reason..." :) Another of my favorite comments came from a staff member of TechTV's The Screen Savers. He said, "We get quite a few neat games on the show, but they're all virtual. This is a REAL game, and it's very cool." |
|||
|
|
||
|
Other Features |
|
|
|
Look-ahead of 4 moves |
|
|
|
Opening book with 384 moves |
|
|
|
Fast-Guess - If opponent has only one move to prevent win, check there first. If opponent played there, continue as normal, otherwise, play in that column (and win) |
|
|
|
Do not check columns known to be full. |
|
|
|
- |
|
|
|
- |
|
|
|
Runs on 16 mhz processor with 32k RAM |
|
|
|
|
|
|
|
|
||
|
Common Questions |
|
|
|
Q: "How does it know what color the chips
are?"
|
|
|
|
Q: "Why does it keep going in the middle?"
|
|
|
|
Q: "Can anyone beat it?"
|
|
|
|
Q: "What if I put in two chips (or take a
chip out)?"
|
|
|
|
Q: "Can the robot go first?"
|
|
|
|
Q: "How long did it take to build?"
|
|
|
|
|
||
|
|
||
|
|
This page is not associated with The LEGO Group in any way. |
|