Page 3 of 4

Re: NXC: chess for NXT

Posted: 11 Jan 2012, 20:05
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:


Re: NXC: chess for NXT

Posted: 11 Jan 2012, 20:43
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!

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

Posted: 11 Jan 2012, 20:47
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!)^^

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

Posted: 11 Jan 2012, 21:43
by pepijndevos
How did you resolve the recursive aspect? Just manual tail-call-loop-unrolling-pointer-avoidance?

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

Posted: 11 Jan 2012, 21:47
by HaWe

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

Posted: 12 Jan 2012, 09:57
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.

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

Posted: 12 Jan 2012, 10:07
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.

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

Posted: 17 Jan 2012, 06:48
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

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

Posted: 17 Jan 2012, 11:32
by HaWe
thx for the music link -
is there a kind of overview list to quickly listen to several tracks?

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

Posted: 17 Jan 2012, 14:46
by mightor
No idea, I usually pick one at random, if I like it, I use it, if not, I randomly pick another :)

- Xander