From ac2626f354cb67ff394901863e0583d825c4640c Mon Sep 17 00:00:00 2001 From: Javier Isoldi Date: Tue, 23 Apr 2024 01:29:21 -0300 Subject: [PATCH 1/2] Pawn moves added. --- test-framework/build.gradle | 5 ++ .../test_cases/movements_pawn_valid.md | 50 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 test-framework/src/main/resources/test_cases/movements_pawn_valid.md diff --git a/test-framework/build.gradle b/test-framework/build.gradle index da8cd59..eb230c0 100644 --- a/test-framework/build.gradle +++ b/test-framework/build.gradle @@ -57,6 +57,11 @@ tasks.named('test') { } // Publish settings +java { + withJavadocJar() + withSourcesJar() +} + publishing { repositories { maven { diff --git a/test-framework/src/main/resources/test_cases/movements_pawn_valid.md b/test-framework/src/main/resources/test_cases/movements_pawn_valid.md new file mode 100644 index 0000000..16c8c24 --- /dev/null +++ b/test-framework/src/main/resources/test_cases/movements_pawn_valid.md @@ -0,0 +1,50 @@ +# Pawn valid movements + +# Size +width = 8 +height = 8 + +# Starting board +``` + a b c d e f g h +1 | |BP| |BK| | | | | +2 |BP| |BP| | | |BP| | +3 | | | |WP| | | | | +4 | | | | |WP|WP| | | +5 | | | | |BP|BP| | | +6 | | | |BP| | | | | +7 |WP|WP|WP| | | |WP| | +8 | | | |WK| | | | | +``` +# Moves +1. a7-a6 +2. a2-a4 +3. b7-b6 +4. b1-b3 +5. b6-b5 +6. b3-b4 +7. c7-d6 +8. c2-d3 +9. d6-e5 +10. d3-e4 +11. g7-g6 +12. g2-g3 +13. g6-f5 +14. g3-f4 + + +# Result +`ALL_MOVES_VALID` + +# Final board +``` + a b c d e f g h +1 | | | |BK| | | | | +2 | | | | | | | | | +3 | | | | | | | | | +4 |BP|BP| | |BP|BP| | | +5 | |WP| | |WP|WP| | | +6 |WP| | | | | | | | +7 | | | | | | | | | +8 | | | |WK| | | | | +``` \ No newline at end of file From f170c5938115be837ded1b33b236defbdc91f53f Mon Sep 17 00:00:00 2001 From: Javier Isoldi Date: Tue, 23 Apr 2024 01:35:25 -0300 Subject: [PATCH 2/2] First pawn invalid move. --- .../test_cases/movements_pawn_invalid.md | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 test-framework/src/main/resources/test_cases/movements_pawn_invalid.md diff --git a/test-framework/src/main/resources/test_cases/movements_pawn_invalid.md b/test-framework/src/main/resources/test_cases/movements_pawn_invalid.md new file mode 100644 index 0000000..5f0803d --- /dev/null +++ b/test-framework/src/main/resources/test_cases/movements_pawn_invalid.md @@ -0,0 +1,37 @@ +# Pawn invalid movements + +# Size +width = 8 +height = 8 + +# Starting board +``` + a b c d e f g h +1 | | | |BK| | | | | +2 |BP| | | | | | | | +3 | | | | | | | | | +4 | | | | | | | | | +5 | | | | | | | | | +6 | | | | | | | | | +7 |WP| | | | | | | | +8 | | | |WK| | | | | +``` +# Moves +1. a7-a8 + + +# Result +`LAST_MOVE_INVALID` + +# Final board +``` + a b c d e f g h +1 | | | |BK| | | | | +2 |BP| | | | | | | | +3 | | | | | | | | | +4 | | | | | | | | | +5 | | | | | | | | | +6 | | | | | | | | | +7 |WP| | | | | | | | +8 | | | |WK| | | | | +``` \ No newline at end of file