new player graphics

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295376 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
fix regression from 1294811

the server instance of Game also needs an initHand()

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295377 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
change computation of Hand.lenOffset

do not use Hand.melds because future commits will need lenOffset before
Hand.melds is available

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295378 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
change computation of windMelds/dragonMelds

do not use Hand.melds because future commits will need
windMelds/dragonMelds before Hand.melds is available

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295379 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Hand: get rid of doublingMelds. Compute doublesEstimate() only
when AI needs it.

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295380 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Pairs: now also accepts a tuple of tileNames

SVN_SILENT

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295381 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Hand.lastTile: for unknown use None instead of "xx"

and only pass the "L" part if lastTile is actually known

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295382 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Client.__maySayMahjongg: simplify

hand.lastMeld is already given, do not compute it again.
and because of hand.won, hand.lastMeld must exist.

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295383 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
new: Hand.mjRule is the winning mjRule.

This will be used by following commits.

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295384 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Hand: fill declaredMelds sooner, needed by rulecode in next commit

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295385 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
split Hand.__setLastMeldAndTile and move determination of lastMeld to mjRule

we need lastTile immediately.
lastMeld is only definable and needed after we determined the matching mjRule
finding lastMeld needs different code depending on the mjRule - like Knitting

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295386 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Hand: small code simplification

SVN_SILENT

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295387 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Hand.__init__: change execution order

because __separateMelds will call rule specific code which wants to use
precomputed things

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295388 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
fix some tests in scoringtest.py

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295389 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
BMJA: add more code to existing rules

for more intelligence
for finding lastMeld
for rearranging tiles to melds
includes a fix for false positives for Knitting

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295390 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Hand: small code optimization

get rid of __ruleMayApply
SVN_SILENT

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295391 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Player.declaredMahJongg: adjust for knitting rules and lastMeld changes

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295392 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
change rearrange interface again

rearrange function return a list of built melds and the unusable rest

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295393 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
rulecode: remove some debugging code

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295394 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
BuriedTreasure: simplify code

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1295395 283d02a7-25f6-0310-bc7c-ecb5cbfe19da