how to make a chess game?
Forum » Programming Help / TI-83 Programming » how to make a chess game?
Started by: zurilyanzurilyan
On: 1257292863|%e %b %Y, %H:%M %Z|agohover
Number of posts: 2
rss icon RSS: New posts
how to make a chess game?
zurilyanzurilyan 1257292863|%e %b %Y, %H:%M %Z|agohover

I would like to make a chess game in basic, but I really don't know how to start it.. I was thinking create an 8x8 matrix for the dimension of the board. Also, store the coordinates of each piece in a list. But that would make 32 lists!! Is there a better way to do this?

unfold how to make a chess game? by zurilyanzurilyan, 1257292863|%e %b %Y, %H:%M %Z|agohover
Re: how to make a chess game?
graphmasturgraphmastur 1257297382|%e %b %Y, %H:%M %Z|agohover

Whoa, why use lists? You already have matrices. Okay, how about assigning each of the types of pieces a specific number. The opposite player being negative of that number. If you can then draw the board, and the pieces from that, you should be able to work on specific moves later.

Chess is a really hard program to start with, due to the fact that it has different moves for different pieces. May I suggest a checkers game first? Or better yet, tic-tac-toe. Then you could also practice some rudimentary Artificial Intelligence.

Good Luck!


"But sanctify the Lord God in your hearts, and always be ready to give a defense to everyone who asks you a reason for the hope that is in you, with meekness and fear;" ~ 1 Peter 3:16

unfold Re: how to make a chess game? by graphmasturgraphmastur, 1257297382|%e %b %Y, %H:%M %Z|agohover
New post