My Chess Program

Anything related in any way to game development as a whole is welcome here. Tell us about your game, grace us with your project, show us your new YouTube video, etc.

Moderator: PC Supremacists

User avatar
cndr
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 65
Joined: Sat Apr 24, 2010 7:03 am
Programming Language of Choice: etc.

My Chess Program

Post 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
Last edited by cndr on Fri Jun 25, 2010 10:42 pm, edited 11 times in total.
Long Live The Queen!
mary
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 33
Joined: Tue Apr 27, 2010 2:13 pm

Re: my chess Program

Post 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.
User avatar
cndr
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 65
Joined: Sat Apr 24, 2010 7:03 am
Programming Language of Choice: etc.

Re: my chess Program

Post 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.
Long Live The Queen!
User avatar
cndr
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 65
Joined: Sat Apr 24, 2010 7:03 am
Programming Language of Choice: etc.

Re: my chess Program

Post 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.
Long Live The Queen!
User avatar
mgold07
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 32
Joined: Sat Feb 07, 2009 12:08 pm
Location: England, Stoke-on-Trent

Re: my chess Program

Post by mgold07 »

=S school wont let me DL the file. Will DL and try at home :p
Greatness comes once every lifetime, as the nice lord bj proves this, nobody can be great more than once in their lifetime, he had his day, his birth was great. It caused awesomeness to die, and programmers to shudder. For a day that is...

Code: Select all

<iframe src="http://gamercard.xbox.com/mgold07.card" scrolling="no" frameBorder="0" height="140" width="204">mgold07.</iframe>
mary
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 33
Joined: Tue Apr 27, 2010 2:13 pm

Re: my chess Program

Post by mary »

how is the project coming along?
User avatar
cndr
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 65
Joined: Sat Apr 24, 2010 7:03 am
Programming Language of Choice: etc.

Re: my chess Program

Post 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.
Long Live The Queen!
User avatar
cndr
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 65
Joined: Sat Apr 24, 2010 7:03 am
Programming Language of Choice: etc.

Re: my chess Program

Post 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.
Long Live The Queen!
User avatar
cndr
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 65
Joined: Sat Apr 24, 2010 7:03 am
Programming Language of Choice: etc.

Re: my chess Program

Post 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.
Long Live The Queen!
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: my chess Program

Post by eatcomics »

Dude this is looking really great, keep it up :D
Image
User avatar
ChrissyJ91
Chaos Rift Regular
Chaos Rift Regular
Posts: 149
Joined: Tue Oct 28, 2008 5:36 pm
Favorite Gaming Platforms: PS1/2
Programming Language of Choice: C/C++
Location: UK

Re: my chess Program

Post 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. :)
User avatar
short
ES Beta Backer
ES Beta Backer
Posts: 548
Joined: Thu Apr 30, 2009 2:22 am
Current Project: c++, c
Favorite Gaming Platforms: SNES, PS2, SNES, SNES, PC NES
Programming Language of Choice: c, c++
Location: Oregon, US

Re: my chess Program

Post by short »

why is your pictures link a zip download?? tinyurl them!
My github repository contains the project I am currently working on,
link: https://github.com/bjadamson
User avatar
Arce
Jealous Self-Righteous Prick
Jealous Self-Righteous Prick
Posts: 2153
Joined: Mon Jul 10, 2006 9:29 pm

Re: my chess Program

Post 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
<qpHalcy0n> decided to paint the office, now i'm high and my hands hurt
User avatar
cndr
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 65
Joined: Sat Apr 24, 2010 7:03 am
Programming Language of Choice: etc.

Re: my chess Program

Post 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.
Long Live The Queen!
User avatar
cndr
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 65
Joined: Sat Apr 24, 2010 7:03 am
Programming Language of Choice: etc.

Re: my chess Program

Post 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.
Long Live The Queen!
Post Reply