Posts Tagged ‘KChess’

KChess first beta released

I decided to release the first test version of KChess to the public.

http://kde-apps.org/content/show.php/KChess?content=122046

=-=-=-=-=
Powered by Blogilo

Castling and en-passant moves in KChess

I finally completed the code reqiured for these special move rules in KChess.

Next up in line: Pawn promotions, and two-player hotseat mode.

Animations in KChess and CGT

Qt 4.6 release brought many improvements, most notably the Animation Framework. Though it works for any QObject and any property, I’ve only implemented it for graphics items and their position. The API is very simple: all I had to do was replace calls such as:

item->setPos(newPos);

to this:

QPropertyAnimation* animation = new QPropertyAnimation(item, "pos");
animation->setStartValue(item->pos());
animation->setEndValue(newPos);
animation->start(QAbstractAnimation::DeleteWhenFinished);

Now, opponent’s moves in KChess and moving or reordering cards in CGTable feels smoother and much more natural.