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.
BTW, topics about projects, done or upcoming, belong in Show & Tell.
Offline
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)
Offline
jason1009 wrote:
would like to make it interactive...with people as actual pieces
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
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!
Offline