a suggestion for micromax chess program

Discussion of chess software programming and technical issues.

Moderator: Ras

kaustubh

a suggestion for micromax chess program

Post by kaustubh »

I found a a move generator which uses rook + bishop moves to generate queen moves, i hope this technique can be used in micromax or maybe micromax is using this technique.

Second i found a c to java bytecode compiler. I will try to compile ansi micromax.c to java bytecode.
User avatar
hgm
Posts: 28354
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: a suggestion for micromax chess program

Post by hgm »

micro-Max uses the same code to generate the moves of all pieces. The directions the pieces move in comes from a zero-terminated list. The list for the Queen is also used for the King (as they move in the same directions, and the distance of the moves are derived from the piece type itself, not from the list). The last part of the list for the Queen+King is also used for the Bishop. The Rook and Knight have their own lists.