Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stewan Lheureux
Échecs féeriques
Commits
74744c54
Commit
74744c54
authored
Mar 31, 2020
by
Théo Winterhalter
Browse files
horizontally → vertically
parent
5e390757
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/ts/empress-move-validation.spec.ts
View file @
74744c54
...
...
@@ -14,19 +14,19 @@ export class TestEmpressMoves {
@
Test
(
"
An Empress can move horizontally
"
)
testCanMoveHorizontally
()
{
// TODO:
// Check the following moves are possible: moveE4_H4, moveE4_A4
// Check the following moves are possible: moveE4_H4, moveE4_A4
}
@
Test
(
"
A Empress can move vertically
"
)
testCanMoveVertically
()
{
// TODO:
// Check the following moves are possible: moveE4_E1, moveE4_E8
// Check the following moves are possible: moveE4_E1, moveE4_E8
}
@
Test
(
"
An Empress can move two squares horizontally and one square vertically
"
)
testCanMoveTwoHorizontalAndOneVertical
()
{
// TODO
// Check the following moves are possible:
// Check the following moves are possible:
// moveE4_G3
// moveE4_G5
// moveE4_C3
...
...
@@ -39,14 +39,14 @@ export class TestEmpressMoves {
// moveE4_F2
// moveE4_F6
// moveE4_D2
// moveE4_D6
// moveE4_D6
}
@
Test
(
"
A Empress cannot move diagonally
"
)
testCannotMoveDiagonally
()
{
// TODO:
// Check the following moves are impossible:
// Check the following moves are impossible:
// moveE4_A8, moveE4_B1, moveE4_H7, moveE4_H1
}
...
...
@@ -54,27 +54,27 @@ export class TestEmpressMoves {
testCanCaptureDifferentColor
()
{
// TODO:
// Place a black Pawn on H4
// Check the move moveE4_H4 is possible
// Check the move moveE4_H4 is possible
}
@
Test
(
"
A Empress cannot capture a piece from the same color
"
)
testCannotCaptureSameColor
()
{
// TODO:
// Place a white Pawn on H4
// Check the move moveE4_H4 is impossible
// Check the move moveE4_H4 is impossible
}
@
Test
(
"
A Empress cannot leap other pieces, when moving horizontally
"
)
testCannotLeapHorizontally
()
{
// TODO:
// Place a black Pawn on F4
// Check the move moveE4_H4 is impossible
// Check the move moveE4_H4 is impossible
}
@
Test
(
"
A Empress cannot leap other pieces, when moving
horizont
ally
"
)
@
Test
(
"
A Empress cannot leap other pieces, when moving
vertic
ally
"
)
testCannotLeapvertically
()
{
// TODO:
// Place a black Pawn on E3
// Check the move moveE4_E1 is impossible
// Check the move moveE4_E1 is impossible
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment