[Kde-games-devel] kmj
Albert Astals Cid
aacid at kde.org
Sun Dec 7 16:35:00 CET 2008
A Dissabte 06 Desembre 2008, Wolfgang Rohdewald va escriure:
> Hello everybody!
Hi
>
> I started writing a new game kmj
>
> this is for the mah jongg game where 4 players play against each other.
> Right now it can be used to make the payments between players and to
> keep track of the results. But the scores themselves still have to be
> entered manually.
Playing online or in the same computer?
> later it should be possible that the user can say who had which tiles
> at the end of the hand, and kmj will compute the scores automatically.
> Which means I must support using different rule sets and make it possible
> for the user to change them. For the core logic - does a specific rule
> apply or not, and which tiles are used - I will use regexp (the player's
> tiles and everything influencing the score being represented as a string).
> On my computer it should not take more than 10ms to compute the scores,
> I estimate after some first experiments (Intel running at 1GHz)
>
> kmj is a name I dont really like - any other idea? At least it corresponds
> to xmj. I added a pointer to kmahjongg in the about data just to
> make the difference clear.
>
> kmj is written in python. It saves results in sqlite3. And I use it as a
> test bed to experiment with python, qt4 and kde4 since I am new to all
> of this.
>
> the tiles a those from kmahjongglib, I directly use those tilesets.
> kmahjongg uses a QImage for drawing, but so far it seems to work very
> well with just using QPixmaps. Do I have to expect problems on different
> hardware or maybe Windows? I also have a class Board where I can
> place tiles in a 2dimensional array using any angle (same angle for all
> tiles).
> The wind tiles in the attached screenshot are just 1x1 boards. Of
> course overlapping tiles really overlap, drawing the lower tile first.
>
> I have no idea yet where best to upload the source code. I am using
> git for versioning, so maybe just put a tarball on my home page until kde
> switches to git. Actually I would prefer to have it somewhere else.
"kde switches to git" is not known to happen as of now, so it can be an
infinite time, you should really put it on kde playground/games directory in
the repo if you want others in this list (including me) to have a look at it
easily.
Albert
>
> screenshot attached
More information about the kde-games-devel
mailing list