Computer Science Canada

Chess - ICS4U Project [Source Code]

Author:  TFish [ 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

Author:  crossley7 [ 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.

Author:  A.J [ 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.

Author:  TFish [ 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

Author:  A.J [ 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.

Author:  2goto1 [ 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


: