[gnome-games/glchess-vala] En-passant only allowed if square available
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/glchess-vala] En-passant only allowed if square available
- Date: Tue, 28 Dec 2010 04:38:16 +0000 (UTC)
commit 37261093422dab969015adead56f7346a54eee84
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Dec 28 14:59:51 2010 +1100
En-passant only allowed if square available
glchess/src/test-chess-game.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/glchess/src/test-chess-game.vala b/glchess/src/test-chess-game.vala
index bc038da..0d969f0 100644
--- a/glchess/src/test-chess-game.vala
+++ b/glchess/src/test-chess-game.vala
@@ -39,6 +39,9 @@ class GlChess
/* En passant */
test_good_move ("8/8/8/pP6/8/8/8/8 w - a6 0 1", "b5a6");
+ /* Can't en passant if wasn't allowed */
+ test_bad_move ("8/8/8/pP6/8/8/8/8 w - - 0 1", "b5a6");
+
/* Castle kingside */
test_good_move ("8/8/8/8/8/8/8/4K2R w K - 0 1", "O-O");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]