Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Games
KReversi
Commits
bed08d31
Commit
bed08d31
authored
Sep 12, 2013
by
Denis Kuplyakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deleted debug output that uses qDebug
parent
0bc4a3b6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
9 deletions
+2
-9
Engine.cpp
Engine.cpp
+2
-3
kreversigame.cpp
kreversigame.cpp
+0
-5
kreversihumanplayer.cpp
kreversihumanplayer.cpp
+0
-1
No files found.
Engine.cpp
View file @
bed08d31
...
...
@@ -316,10 +316,9 @@ void Engine::yield()
KReversiMove
Engine
::
computeMove
(
const
KReversiGame
&
game
,
bool
competitive
)
{
if
(
m_computingMove
)
{
kDebug
()
<<
"I'm already computing move! Yours KReversi Engine."
;
if
(
m_computingMove
)
return
KReversiMove
();
}
m_computingMove
=
true
;
ChipColor
color
;
...
...
kreversigame.cpp
View file @
bed08d31
...
...
@@ -290,7 +290,6 @@ bool KReversiGame::isHintAllowed() const
void
KReversiGame
::
blackPlayerMove
(
KReversiMove
move
)
{
qDebug
()
<<
"Game: black move"
;
if
(
move
.
color
==
White
)
return
;
// Black can't do White moves
makeMove
(
move
);
...
...
@@ -298,7 +297,6 @@ void KReversiGame::blackPlayerMove(KReversiMove move)
void
KReversiGame
::
whitePlayerMove
(
KReversiMove
move
)
{
qDebug
()
<<
"Game: white move"
;
if
(
move
.
color
==
Black
)
return
;
// White can't do Black moves
makeMove
(
move
);
...
...
@@ -306,13 +304,11 @@ void KReversiGame::whitePlayerMove(KReversiMove move)
void
KReversiGame
::
onDelayTimer
()
{
qDebug
()
<<
"On Delay"
;
startNextTurn
();
}
void
KReversiGame
::
blackReady
()
{
qDebug
()
<<
"Black ready"
;
m_isReady
[
Black
]
=
true
;
if
(
m_isReady
[
White
])
m_player
[
Black
]
->
takeTurn
();
...
...
@@ -320,7 +316,6 @@ void KReversiGame::blackReady()
void
KReversiGame
::
whiteReady
()
{
qDebug
()
<<
"White ready"
;
m_isReady
[
White
]
=
true
;
if
(
m_isReady
[
Black
])
m_player
[
Black
]
->
takeTurn
();
...
...
kreversihumanplayer.cpp
View file @
bed08d31
...
...
@@ -54,7 +54,6 @@ void KReversiHumanPlayer::gameOver()
void
KReversiHumanPlayer
::
onUICellClick
(
KReversiPos
pos
)
{
qDebug
()
<<
"UI CELL CLICK!"
<<
' '
<<
m_state
;
if
(
m_state
!=
THINKING
)
{
// it is not our turn ignore it
return
;
...
...
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