Page 1 of 3

My Chess Program

Posted: Mon May 24, 2010 8:19 am
by cndr
I've almost completed what I set out to do with this chess program, I only have checking left to implement, I might do AI in this project or I might restart and make it more AI friendly. I thought now would be a good time to release a preview of what the game is like, I know that the game works in xp, vista, and ubuntu. Try it out and if you find any bugs, or I am missing something let me know.


full downloads:
Windows http://www.box.net/shared/343x2tmjlx
Linux: http://www.box.net/shared/p4s366v7j8

partial downloads:
pictures:http://www.box.net/shared/x32h3f3juv
windows : http://www.box.net/shared/4g6uhhqp55
SDL dlls: http://www.box.net/shared/37iy951xgk
Linux: http://www.box.net/shared/41jjf50tba
lazy ttf: http://www.box.net/shared/funoq1us52

Notes:
you must choose desired promotion piece before moving pawn.
controls:

Code: Select all

While in game mode:
b = enable/disable blind chess  (c still displays attacking squares when enabled)
c = enable/disable attacking squares (pretty much what I used to make sure everything is working)
t = output text version of board
l = enable/disable legal moves
e = go to edit mode
2 = change promotion piece to knight 
3 = change promotion piece to bishop
4 = change promotion piece to rook
5 = change promotion piece to queen

while in edit mode:
s = save position
o = open position
tab = change player
1 = change selected piece to pawn
2 = change selected piece to knight
3 = change selected piece to bishop
4 = change selected piece to rook
5 = change selected piece to queen
6 = change selected piece to king

Re: my chess Program

Posted: Mon May 24, 2010 11:54 am
by mary
I hope you add an engine, or some pgn support, maybe an option to take back moves, all in all I like it. I tried it on vista and seems to work fine.

Re: my chess Program

Posted: Mon May 24, 2010 12:13 pm
by cndr
I was thinking about adding pgn support, but I have not solved how to do it yet, as for taking back moves I have an idea on how to do it, I'll do some testing on it after I finish up some code.

Re: my chess Program

Posted: Mon May 24, 2010 8:43 pm
by cndr
I think I might pretty much restart my project, and change everything to bit boards, and get it all ready for AI, I might post my source code for my the chess project in the links, if there is any interest of course.

Re: my chess Program

Posted: Fri May 28, 2010 7:29 am
by mgold07
=S school wont let me DL the file. Will DL and try at home :p

Re: my chess Program

Posted: Sat May 29, 2010 4:39 pm
by mary
how is the project coming along?

Re: my chess Program

Posted: Sat May 29, 2010 6:32 pm
by cndr
it's coming along, I haven't really had a good chance to program, but I have bit boards almost implemented, and am going to use them for the checking system I think, I'll see what else I can improve with them after thats all taken care of.

Re: my chess Program

Posted: Mon May 31, 2010 6:04 pm
by cndr
I now have checking fully implemented, was pretty easy after I finished the bit boards. I will be releasing a new version when I make my own pieces.

Re: my chess Program

Posted: Wed Jun 02, 2010 8:23 pm
by cndr
Checking is now implemented, the only thing left to do is checkmate and stalemate. If you find any glitches with the code please tell me, I should note that if you turn off legal moves, checking still works, I will be fixing that next update. I have separated the downloads in case you already have the SDL dlls on your computer, or if you choose to edit the pictures to your liking and want the originals. All the art in the project is now original artwork, its not the greatest artwork but I think it will do until I get farther along in the project.

Re: my chess Program

Posted: Thu Jun 03, 2010 10:09 am
by eatcomics
Dude this is looking really great, keep it up :D

Re: my chess Program

Posted: Thu Jun 03, 2010 11:25 am
by ChrissyJ91
I just took a look at your images and wow those are some really nice pieces. I like how almost everything appears to have eyes. Well done! looking forward to future updates. :)

Re: my chess Program

Posted: Thu Jun 03, 2010 4:27 pm
by short
why is your pictures link a zip download?? tinyurl them!

Re: my chess Program

Posted: Sat Jun 05, 2010 10:31 pm
by Arce
Oh! Very very cool! Tested on Win7 and works like a charm. ;p

That's pretty cool! I'll definitely be looking for updates. Lemme know if you decide to start any kind of AI. ;p

Re: my chess Program

Posted: Sun Jun 06, 2010 9:43 pm
by cndr
thanks for the feedback, I have found some bugs in the program, and am repairing them, one you might notice is if you have a knight on f3 and try to move to h2 it wont work in the version I have out, already fixed it though. I've been doing some reworking of some functions, and messed up checking somehow, so I've got to fix that, then I'll be back on course to do checkmate and stalemate, already figured out how to do them, just have to write some function, I've also noticed that somehow I drew the board wrong, and have the numbers at the bottom, will have to change that too. If you look closely at the king queen and knight, you will notice that they indeed have eyes.

edit: just finished fixing all known bugs, finally working on stalemate.

Re: my chess Program

Posted: Fri Jun 11, 2010 11:29 pm
by cndr
I finally have checkmate and stalemate working, I'm going to fix two bugs, and then the program should be ready to be uploaded. I'm not sure what I want to work on next, AI or a position editor. I'm thinking AI because I think it will be more fun, and I know nothing about map/position editors.

edit: all files are updated, there are some new pictures, I changed the board that is used, so the numbers are on the left and letters are on the bottom. I've also added pictures to show when a player is stalemated or checkmated.