This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-04-03 21:30:04

jason1009
Scratcher
Registered: 2009-04-03
Posts: 1

making a chess game

would like to make it interactive...with people as actual pieces  smile

but i need to start with the board first

Offline

 

#2 2009-04-03 21:37:22

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: making a chess game

That's gonna be hard... Considering you're new. I've been for 5-6 months on Scratch and I don't know how to make a chess AI, yet. Good luck, and welcome to the Scratch Community.  smile

BTW, topics about projects, done or upcoming, belong in Show & Tell.


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#3 2009-04-05 07:54:38

djmoomoo
Scratcher
Registered: 2007-08-31
Posts: 57

Re: making a chess game

Try a set of rules for a simpleish AI: e/g

if is in check then move another piece
       if can't move another peice then move king
       if can't move king give up
end if

if can take peice
       take piece
end if

if can get opponents king into check
      move piece into check.
end if

if king is where he was originally AND castle was where it was originally
       castle
end if

These are VERY basic rules, and could be expanded, like when it's in check, choosing a lesser peice to move and cancel check, and when it can take a piece, choose if it's 'worth it', e.g. pawn taking queen = worth it.

Not only will you have to use these rules, but give every peice sprite a set of criteria it must pass before actually making a move, e.g. bishop could take a queen, but there's a pawn in the way.

So I think you should sit down one day and take a piece of paper and make a flow chart.

- Djmoomoo


EDIT:

Maybe there's an open source chess AI you could *borrow* to scratch. *wink*

Last edited by djmoomoo (2009-04-05 07:57:09)


There are 0011 types of people, those that can count in binary and those that can't.

Offline

 

#4 2009-04-06 16:05:16

chalkmarrow
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: making a chess game

jason1009 wrote:

would like to make it interactive...with people as actual pieces  smile

but i need to start with the board first

Jason1009:

Here's a few chess projects. One of them is a blank board and pieces that you can play with:

http://scratch.mit.edu/galleries/view/12610

Offline

 

#5 2009-04-19 18:39:10

happysmiles
Scratcher
Registered: 2009-02-15
Posts: 500+

Re: making a chess game

Woah... that's gonna be really hard to make! I am not the right person to ask for help but I hope to see it finished!


Sample Quiz v.3.  roll  Robot-X  wink  Baking Cookies  big_smile  Coming Soon:
http://img154.imageshack.us/img154/6876/thisone.png

Offline

 

Board footer