• Articles
  • Animated checkers game using SFML
Published by
Dec 11, 2012

Animated checkers game using SFML

Score: 4.0/5 (1 votes)
*****
Here is a project which started for me as an effort to develop a drag and drop object for possible use as a GUI element, or in a game.

A checkers game with checkers which snap-to a board space center on release seemed like a good framework for developing the drag and drop object.

A checker will only snap-to a space if a move there is legal, otherwise it snaps back to where it was.

Animation effects include:

1) An animated greeting. (WELCOME appears, then after a couple of seconds it expands and fades out).

2) A fully animated dealing of checkers to the board.

3) Captures, including the split of a captured king into two checkers where captured checkers go, along the board edges.

4) A captured checker is used when a checker is "kinged".

5) Animated winner announcement at end of game.

I won't try to describe the code here.
I will say that I feel it could easily be improved. There are some features which I could have integrated better.

So, here's some source code!

The zip folder below contains all source, images and an executable, but not the 5 sfml dlls required for it to run. Including these made the folder so big that it wouldn't upload. These files are:
libgcc_s_dw2-1.dll
libstdc++-6.dll
sfml-system.dll
sfml-graphics.dll
sfml-window.dll
Presumably they could be downloaded from sfml.org

Code Blocks project with executable

Attachments: [checkers.zip]