Chess
This is the result of work done in the course "02122 - Software Technology Project (Fagprojekt)" at DTU by me and two of my friends.
You may jump directly to:
About the project
Of a handful of standard projects, we chose the chess project. While we technically had a bit over 16 weeks to design, implement and document, the semester was pretty busy, and most of the work was done in the last three to four weeks.
For this reason, it has some rough edges and the documentation could've used some work.
We received a fair grade for this project, 9 on the 13 scale. If that doesn't make sense to you, I believe it's about a B+.
Program notes
The images used are from Wikipedia. No code was borrowed from external sources.
As I said above, the program has some rough edges. Here's some of the... less logical things.
- Once a player is checkmate, you cannot load or make a new game. You need to close the program and open it again.
- When the computer moves, the board may look very weird. Give it time to finish its move and it'll be corrected in the end.
- Player options can be set in Tools. Setting the artificial intelligence to 5 or higher may produce long waits between moves.
- Experienced players will likely find the simple artificial intelligence a pretty easy opponent, though novices may be challenged.
- Sandbox mode may produce bugs and is provided "as is". To enable sandbox mode, go to Tools and click Edit Board. Click the square you want to edit and select the new piece. Click Edit Board again in Tools to exit sandbox mode.
- The move history is showed on the right. It does not use the "normal" chess notation simply because it confused us too much. Instead we used the coordinates moved from and to.
- You might want to save your game before actively using the history (see next note), as it sometimes skips a few turns when you revert.
- Don't click the history unless you want to revert the game state, as it will probably mess up the history otherwise! When you click a move there, it will show the board at the time.
You can view the another state simply by clicking another move. When you have the state you want to load to, click the Revert button.
Get the program
Try the chess program (142 KB)!
To open the .jar file, you will need to have Java (Runtime Environment) on your computer.
Enjoy.