Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
Kajongg
Commits
bff2c0b4
Commit
bff2c0b4
authored
Dec 16, 2017
by
Wolfgang Rohdewald
Browse files
Debug.hand: improve debug output
parent
4cdb29e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hand.py
View file @
bff2c0b4
...
...
@@ -113,7 +113,7 @@ class Hand(StrMixin):
self
.
debug
(
fmt
(
'{callers}'
,
callers
=
callers
(
exclude
=
[
'__init__'
])))
Hand
.
indent
+=
1
self
.
debug
(
'New Hand {} {}'
.
format
(
string
,
self
.
lenOffset
))
self
.
debug
(
'New Hand {}
lenOffset=
{}'
.
format
(
string
,
self
.
lenOffset
))
try
:
self
.
__arrange
()
...
...
@@ -127,7 +127,7 @@ class Hand(StrMixin):
finally
:
self
.
_fixed
=
True
if
Debug
.
hand
or
(
Debug
.
mahJongg
and
self
.
lenOffset
==
1
):
self
.
debug
(
'Fixing {} {}
{}'
.
format
(
self
,
self
.
won
,
self
.
score
))
self
.
debug
(
'Fixing {} {}{}'
.
format
(
self
,
'won '
if
self
.
won
else
''
,
self
.
score
))
Hand
.
indent
-=
1
def
__parseString
(
self
,
inString
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment