summaryrefslogtreecommitdiff
path: root/chess-phalanx.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-phalanx.el')
-rw-r--r--chess-phalanx.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/chess-phalanx.el b/chess-phalanx.el
index 417fa41..7b902a4 100644
--- a/chess-phalanx.el
+++ b/chess-phalanx.el
@@ -19,12 +19,11 @@
(defvar chess-phalanx-regexp-alist
(list
- (cons (concat "my move is \\(P?\\("
- chess-algebraic-regexp "\\)\\)\\s-*$")
+ (cons (concat "my move is P?\\(" chess-algebraic-regexp "\\)\\s-*$")
(function
(lambda ()
(funcall chess-engine-response-handler 'move
- (chess-engine-convert-algebraic (match-string 2))))))
+ (chess-engine-convert-algebraic (match-string 1))))))
(cons "Illegal move:\\s-*\\(.*\\)"
(function
(lambda ()