Parallax Forums
  HomeLog InRegisterCommunity CalendarSearch the ForumHelp
   
Parallax Forums > Public Forums > Propeller Chip > Prop Chess (for VGA): Human Vs. Propeller  Forum Quick Jump
 
New Topic Post Reply Printable Version
[ << Previous Thread | Next Thread >> ] | Show Newest Post First ]

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 6/20/2009 7:55 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Can you beat your Prop at Chess?
 
This is by no means complete, but I lost motivation when I started running out of room...
 
I think it knows all the rules and plays fairly. 
 
Also demonstrates my tricked out mouse...


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm

Post Edited (Rayman) : 6/20/2009 3:06:54 PM GMT


Image Attachment :
Image Preview
Chess6.JPG
  267KB (image/pjpeg)
This image has been viewed 324 time(s).

File Attachment :
Chess6_XGA - Archive [Date 2009.06.20 Time 11.04].zip   52KB (application/x-zip-compressed)
This file has been downloaded 207 time(s).
Back to Top
 

Sapieha
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Sep 2007
Total Posts : 1020
 
   Posted 6/20/2009 8:43 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Hi Rayman.

It is not posible to have .dat files in High half in EEprom on ProtoBoard and load them on demand.
That can give You more place for program area.
To load them it is only ned for simple I2C handler


Nothing is impossible, there are only different degrees of difficulty.

For every stupid question there is at least one intelligent answer.

Don't guess - ask instead.

If you don't ask you won't know.

If your gonna construct something, make it as simple as possible yet as versatile as posible.

 
Sapieha

Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 6/20/2009 4:17 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
There are some options... I could do as you say.

I could use Baggers RLE code code compress the images.

But, I think the easiest thing for me is to use my PSM module to do it on the LCD and use the PSM's SD card to store true color images...

That should free up enough space to do a really nice job. But, honestly, I don't forsee having the time to complete this, which is why I posted it now...


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm

Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 6/20/2009 4:20 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
PS: Anybody beat their Prop yet? It's not too hard, but it takes a while...

The main things missing are opening and closing move libraries...


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm

Back to Top
 

hover1
I have 3 Propellers



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Sep 2007
Total Posts : 1448
 
   Posted 6/20/2009 4:34 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
Rayman said...
PS: Anybody beat their Prop yet? It's not too hard, but it takes a while...

The main things missing are opening and closing move libraries...

Played a quick game. Stalemate. But then again I'm stale. . Haven't played a good game in years since my son is grown and gone.
 
Thanks for the memories! Next Prop against Prop.
Back to Top
 

stevenmess2004
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Dec 2007
Total Posts : 1076
 
   Posted 6/20/2009 9:04 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
Rayman, looks great.

However, there appear to be a couple of bugs in your code that does the black castling. Starting with a new game if I move my Kings pawn forward two the prop then moves far left pawn forward one, I then move Queen's Knight forward and right and the prop tries to castle on the Queen's side (sorry for all the wrong move and piece names, I don't know all the proper move notation.) It happened another time as well on the other side but it was further in the game and I can't remember what caused it.

Nice Mouse too.
Back to Top
 

stevenmess2004
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Dec 2007
Total Posts : 1076
 
   Posted 6/20/2009 9:17 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
Well, I just won a game. But after I won it put up a "Bad move.." on the left side of the screen. When it did the incorrect castle the other pieces (rook and bishop) were still under the other pieces and it also changed a pawn to a king at one stage. Maybe you've run out of stack space?
Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 6/21/2009 4:49 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Steven: Hmm... I thought I had all those bugs worked out... I'll have to double check that I've posted the latest version...


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm

Back to Top
 

Lawson
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Aug 2006
Total Posts : 318
 
   Posted 6/22/2009 5:01 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
Castling is a bit buggy. Black had two queens and no king for a while, then three rooks and no king, then... Not too smart yet, I promoted a pawn mid game. The game didn't go well for the propeller from then on. Still, this is rather cool! I think the graphics are fine quality. If you're hurting for space to make the AI smarter I wouldn't mind cruder graphics even.

Lawson


Lunch cures all problems! have you had lunch?

Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 6/23/2009 5:56 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Ok, sounds like there's a definite bug with castling... I'll try to find time to fix that...

The AI could be dramatically improved with a little more code space. My current inclination is to do this with the help of the onboard LCD and SD card on my PSM module. Other alternative is to wait for Prop2...


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm

Back to Top
 

BADHABIT
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2009
Total Posts : 138
 
   Posted 6/23/2009 8:01 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
The Prop2 is just a myth created to keep people put of by P1's limitations interested in Propelerness. It is perpetuated by very smart and well to do individuals because they believe in it as fact because their high priest said it was so.

Therefore you should fix it up to run on the PSM, then everybody who got one would have a demo to show off all of PSM's featurization.


BH skull

Back to Top
 

stevenmess2004
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Dec 2007
Total Posts : 1076
 
   Posted 6/24/2009 2:29 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
If nothing else it should be fairly easy to find the code that does the castling and just comment it out right?
Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 6/24/2009 6:01 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Strangely, a large percentage of the code is there just to handle little things like castling and en passant... I put a lot of effort into adding that and wouldn't want to take it out... Maybe I'll have time on my flight out to CA to look into what's wrong...


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm

Back to Top
 

ProcessingData...
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2009
Total Posts : 141
 
   Posted 6/25/2009 7:28 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Rayman said...
PS: Anybody beat their Prop yet? It's not too hard, but it takes a while...
Sweet! I beat it on the first try! I must be better at chess than I thought.
Just a suggestion, you could make a Human Vs. Human option too, and put a "Propeller is thinking.."
on the screen when it is the prop's turn, or just change the cursor to a propeller hat.smilewinkgrin -- ProccessingData...


Basic Stamp,     Propeller,     SX,   FUN!
 
START: 
>Proccessing Data. . . .  
>Task Complete. . . .
>Saving Data. . . .
>Entering SLEEP Mode. . . .
>Signing OFF
 
 
 

Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 6/25/2009 10:06 AM (GMT -7)    Quote This PostAlert An Admin About This Post.

PD:  I posted human V human last year!:

http://forums.parallax.com/forums/default.aspx?f=25&m=289824

 

Back to Top
 
[ << Previous Thread | Next Thread >> ]
New Topic Post Reply Printable Version
 
Forum Information
Currently it is Thursday, July 29, 2010 5:16 PM (GMT -7)
There are a total of 462,439 posts in 62,066 threads.
In the last 3 days there were 90 new threads and 802 reply posts. View Active Threads
Who's Online
This forum has 20143 registered members. Please welcome our newest member, ME01.
51 Guest(s), 9 Registered Member(s) are currently online.  Details
John Abshier, kf4ixm, BradC, Sapieha, Timmoore, Gene Bonin, laser-vector, localroger, Nick McClick