1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

(Another) Connect-4 playing robot

Discussion specific to projects ideas and support.

(Another) Connect-4 playing robot

Postby floydbloke » 19 Feb 2012, 00:35

After a few failed attempts, I’ve finally managed to build a reasonably reliable Connect-4 playing NXT Robot. It talks to the PC over Bluetooth to do the thinking because it uses a minmax algorithm that needs function recursion which is not supported by NXC. And since I’m not smart enough to write my own, I had to find one on the web, credit and thanks to Keith Pomakis.

I deliberately haven’t (yet) looked at the other ones that are out there because I wanted the challenge of creating my own. I’m fairly pleased with the result.

http://www.youtube.com/watch?v=oTsOvPy8Zik&feature=youtu.be
User avatar
floydbloke
 
Posts: 27
Joined: 15 Oct 2010, 01:29
Location: Wellington, New Zealand

Re: (Another) Connect-4 playing robot

Postby hassenplug » 19 Feb 2012, 03:07

Very nice.

Keith's code is very good. I used it when I made an RCX robot a few years back. I found it easily beats most players when set to look ahead four moves (two for you, two for opponent)

I like the way it wiggles to drop the chips in.

Steve
---> Link to lots of MINDSTORMS stuff under my picture --->
User avatar
hassenplug
 
Posts: 346
Joined: 27 Sep 2010, 03:05

Re: (Another) Connect-4 playing robot

Postby gloomyandy » 23 Feb 2012, 12:29

User avatar
gloomyandy
 
Posts: 320
Joined: 29 Sep 2010, 05:03

Re: (Another) Connect-4 playing robot

Postby floydbloke » 24 Feb 2012, 05:11

NIce work Andy. Great use of the NXTCAM.
User avatar
floydbloke
 
Posts: 27
Joined: 15 Oct 2010, 01:29
Location: Wellington, New Zealand


Return to Mindstorms Projects

Who is online

Users browsing this forum: No registered users and 1 guest

cron