[Kde-games-devel] Nim game

Ian Wadham kde-games-devel@mail.kde.org
Fri, 12 Apr 2002 17:03:06 +1000


----- Original Message ----- 
From: Leif Jensen <jensen@math.columbia.edu>
To: <kde-games-devel@kde.org>
Sent: Wednesday, April 10, 2002 7:14 AM
Subject: [Kde-games-devel] Nim game


> There's a simple little game called nim that is a bit more
> interesting and engaging than tic-tac-toe, though not much more
> complicated.  Over the years, it's been a sort of hello-world
> first project for me in a lot of languages.  Lately I wanted
> to make a Qt/KDE version, so I'm asking for advice on what
> approach to take and what other simple projects to look at
> for implementation ideas.
> 
Check the KDE Games home page www.kde.org/kdegames.  In
the left panel, near the bottom, is a list of articles and links.  Check
the one called "QCanvas/Sprites".  It describes how to program
a simple game, using QCanvas graphics and animation, but the user
interface is pure Qt, based on the QApplication class.

Games in the KDE Games collection have a KDE interface,
based on KApplication and KDE class libraries.  Also, to publish
a game that will compile, build and run in different people's
environments, you need to know about standard makefiles and
configuration issues.

KDE's KDevelop package for program development automates
most of that stuff and generates a skeleton application, makefiles
and configuration scripts for you.  It also contains documentation
of the KDE classes and an explanation of the configuration issues.

I've also found it helpful to read the source code of some of
the games in the "kdegames" package.

Good luck, Ian Wadham