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_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 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