Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Chess - ICS4U Project [Source Code]
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
TFish




PostPosted: Sun Jun 19, 2011 7:46 pm   Post subject: Chess - ICS4U Project [Source Code]

Here is my chess project, source code included. There is a glitch with the check, however. If you put the king in check, sometimes it won't let you move a piece that will take you out of check. If you repeatedly click on the king, then the spot you want to go, however, it sometimes works. If anyone can solve this, go ahead. I couldn't figure it out Razz

Anyways, comments and criticism are welcome



Chess - TFish.zip
 Description:

Download
 Filename:  Chess - TFish.zip
 Filesize:  14.98 KB
 Downloaded:  1349 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
crossley7




PostPosted: Mon Jun 20, 2011 3:07 pm   Post subject: RE:Chess - ICS4U Project [Source Code]

Love that you showed the squares that a selected piece can move (I should have done that for my chess game, but didn't feel like it Razz), and good graphics, but the way to take it to the next level would be a simple AI (yes, I know that is way too much work, I'm making some right now for my chess game in c++) that would at least move the pieces with a small degree of intelligence such as not being checkmated on the next move if possible. If you want to look at my game, I can upload it once I have AI done because I'm not really cleaning my file organization until I've reached that point, but it would be cool to compare to another chess game.
A.J




PostPosted: Tue Jun 21, 2011 1:25 am   Post subject: RE:Chess - ICS4U Project [Source Code]

I enjoyed the classical graphics. Regarding gameplay, there are a few glitches regarding pawns (i.e. when one pawn takes another, en passant, etc...). Sometimes both pawns disappear all together. Attempt to rid the game of glitches and errors prior to coding up an AI.

The AI behind a chess program can get as complex as you'd like it to get. That's why it is crucial to have the game working before adding an AI. I have created a chess game in turing with an AI back in Grade 10 that implements a minimax algorithm with alphabeta pruning (http://en.wikipedia.org/wiki/Alpha-beta_pruning), and I ran into multiple problems because my program had had a few glitches before creating the AI.

Really good work overall.
TFish




PostPosted: Tue Jun 21, 2011 6:44 am   Post subject: RE:Chess - ICS4U Project [Source Code]

Yeah, I doubt I'll get around to coding AI Razz
A.J




PostPosted: Wed Jun 22, 2011 8:39 am   Post subject: RE:Chess - ICS4U Project [Source Code]

Regardless, try ridding your programs of those minute glitches. Try getting en passant working properly at least. But once again, very good job on the graphics.
2goto1




PostPosted: Wed Jun 22, 2011 9:27 am   Post subject: RE:Chess - ICS4U Project [Source Code]

The draw rules could be a bit more challenging but worth attempting: http://www.chess.com/learn-how-to-play-chess.html#draws
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: