Hand: mini-code-reduction

SVN_SILENT

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1294785 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
add more descriptions for BMJA special hand rules

SVN_SILENT

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1294786 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
kajonggtest: if --clients is higher than --count, limit it

SVN_SILENT

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1294787 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
kajonggtest: if --game is given use default for --count

so now the minimalistic form is kajonggtest.py --game=543
SVN_SILENT

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1294788 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
explain scoring: indent detail lines

and fix a recent regression (another reference to deprecated Hand.tiles)

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1294789 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
explain scoring: only show the limit rule for limit hands

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

writes scoring explanation to log

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1294791 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
change icon for demo mode

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1294792 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
disable demo mode button for manual games

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1294793 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
reduce space usage of toolbar

see http://agateau.com/2012/05/11/common-user-interface-mistakes-in-kde-applications-part-5-big-toolbars/

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1294794 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
RuleList: fix infinite recursion

when accessing a rule by integer index

SVN_SILENT

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1294795 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
fix skipping to a certain hand

with --game=55/S3 - usage of the random generator was different than without
skipping

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1294796 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
demo mode: fix duplicate code execution

AI was asked twice which tile to discard. This only matters since recently
because since then the random generator is used when two tiles have the same
uselessness. But we want the random generator to be called exactly with the
same order/frequency for all modes (nogui, gui, autoplay) so we can
easier reproduce bugs.

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1294797 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
when activating demo mode while playing,

and when a dialog was visible, the first choice of the dialog was executed.
Now the default choice (the one with focus) is executed.

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1294798 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
TileAI: fix/optimization for border tiles

this unintentionally fixes a bug: tiles like 2 or 8 were sometimes kept
even if there was no chance to ever form a meld with them
(reproducable with game 1185, BMJA, no boni)

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

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1294800 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
elements: also predefine sets for hidden tiles

SVN_SILENT

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1294801 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Hand: rename fsMelds to bonusMelds

and remove unused fsMeldNames

SVN_SILENT

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1294802 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
BMJA: did not recognize calling for Three Great Scholars

git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdegames@1294803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Hand: make some methods private

SVN_SILENT

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