NXC: autonomous chess program + chess robot for NXT

Discussion specific to projects ideas and support.
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: NXC: chess for NXT

Post by HaWe »

the video !!

http://www.youtube.com/watch?v=UHxfFxfR ... e=youtu.be




maybe blocked because of the soundtrack -
so - very boring, as a silent movie - look at this:

Last edited by HaWe on 13 Jan 2012, 12:00, edited 2 times in total.
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: NXC: chess for NXT

Post by mattallen37 »

Wow, that's cool!

What building platform did you use?

You should do a time-lapse video of it playing a complete game autonomously!
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: NXC: autonomous chess program + chess robot for NXT

Post by HaWe »

Thanks, matt!^^

It's Fischertechnik combined with Lego Mindstorms and Lego Technic!

(filming a whole game is one of my nxt projects - probably!)^^
pepijndevos
Posts: 175
Joined: 28 Dec 2011, 13:07
Location: Gelderland, Netherlands
Contact:

Re: NXC: autonomous chess program + chess robot for NXT

Post by pepijndevos »

How did you resolve the recursive aspect? Just manual tail-call-loop-unrolling-pointer-avoidance?
-- Pepijn
http://studl.es Mindstorms Building Instructions
pepijndevos
Posts: 175
Joined: 28 Dec 2011, 13:07
Location: Gelderland, Netherlands
Contact:

Re: NXC: autonomous chess program + chess robot for NXT

Post by pepijndevos »

I did, seems like manual tail-call-loop-unrolling-pointer-avoidance to me, but it's quite a big piece of code. It seems you have separate functions for the 3 layers, which contain huge loops and branches.
-- Pepijn
http://studl.es Mindstorms Building Instructions
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: NXC: autonomous chess program + chess robot for NXT

Post by HaWe »

yes, I was unsure what you meant by
tail-call-loop-unrolling-pointer-avoidance
- if it was meant seriously or if it was supposed to be a joke,
but because for some inside-functional goto cmds it was easier to write seperated functions - with the additional benefit that I could cut off some parts of the code (e.g. for a quiscience search) or for different scores (e.g. for a check threat) in deeper iteration levels. That's why having to write a FIFO stack for just 1 universal move generator function appeared to me to be much more effort to do.
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: NXC: autonomous chess program + chess robot for NXT

Post by mightor »

Doc,

Looks pretty fantastic :) Btw, if you want to avoid sound track issues, you can download and use a lot of music from this site: http://www.jamendo.com/en/ for free, as long as you adhere to the license the music is distributed under. I use this quite a lot. Mine is usually more electronic music, but I am sure there's music of the rock-persuasion, too.

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: NXC: autonomous chess program + chess robot for NXT

Post by HaWe »

thx for the music link -
is there a kind of overview list to quickly listen to several tracks?
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: NXC: autonomous chess program + chess robot for NXT

Post by mightor »

No idea, I usually pick one at random, if I like it, I use it, if not, I randomly pick another :)

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests