Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 669276 Details for
Bug 876353
glchess needs me to make its first move
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch for glchess
glchess-patch (text/plain), 1.78 KB, created by
William Makowski
on 2012-12-26 17:41:12 UTC
(
hide
)
Description:
Patch for glchess
Filename:
MIME Type:
Creator:
William Makowski
Created:
2012-12-26 17:41:12 UTC
Size:
1.78 KB
patch
obsolete
>From 4f6efed734470eddd3e620933a6711c582028da4 Mon Sep 17 00:00:00 2001 >From: Dominique Leuenberger <dimstar@opensuse.org> >Date: Fri, 18 May 2012 22:15:39 +0200 >Subject: [PATCH] glchess: fix phalanx/gnuchess output interpretation. Bug > 675434 > >--- > glchess/src/chess-engine-cecp.vala | 4 ++-- > glchess/src/chess-game.vala | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/glchess/src/chess-engine-cecp.vala b/glchess/src/chess-engine-cecp.vala >index cb40419..4a7aff5 100644 >--- a/glchess/src/chess-engine-cecp.vala >+++ b/glchess/src/chess-engine-cecp.vala >@@ -40,7 +40,7 @@ public class ChessEngineCECP : ChessEngine > > debug ("Read from engine: '%s'", line); > >- string[] move_prefixes = { "My move is: ", "my move is ", "move " }; >+ string[] move_prefixes = { "My move is: ", "My move is : ", "my move is ", "move " }; > foreach (string prefix in move_prefixes) > { > if (line.has_prefix (prefix)) >@@ -48,7 +48,7 @@ public class ChessEngineCECP : ChessEngine > string move = line[prefix.length:line.length]; > debug ("Engine moves %s", move); > moving = true; >- moved (move); >+ moved (move.strip()); > } > } > >diff --git a/glchess/src/chess-game.vala b/glchess/src/chess-game.vala >index 3c5ebce..ecd8b83 100644 >--- a/glchess/src/chess-game.vala >+++ b/glchess/src/chess-game.vala >@@ -1027,7 +1027,7 @@ public class ChessState > r1 = (int) (move[i] - '1'); > i++; > } >- if (move[i] == 'x') >+ if (move[i] == 'x' || move[i] == '-') > i++; > if (move[i] >= 'a' && move[i] <= 'h') > { >-- >1.7.9.2 > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 876353
: 669276