Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
8938bc3b
Commit
8938bc3b
authored
Mar 23, 2020
by
sunye
Browse files
Correct bad copy and paste: empress and princesse move like a knight, not a like a camel
parent
ec207445
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/test/ts/empress-move-validation.spec.ts
View file @
8938bc3b
...
...
@@ -23,7 +23,7 @@ export class TestEmpressMoves {
// Check the following moves are possible: moveE4_E1, moveE4_E8
}
@
Test
(
"
An Empress can move t
hree
squares horizontally and one square vertically
"
)
@
Test
(
"
An Empress can move t
wo
squares horizontally and one square vertically
"
)
testCanMoveTwoHorizontalAndOneVertical
()
{
// TODO
// Check the following moves are possible:
...
...
@@ -33,7 +33,7 @@ export class TestEmpressMoves {
// moveE4_C5
}
@
Test
(
"
An Empress can move t
hree
squares vertically and one square horizontally
"
)
@
Test
(
"
An Empress can move t
wo
squares vertically and one square horizontally
"
)
testCanMoveTwoVerticalAndOneHorizontal
()
{
// TODO
// moveE4_F2
...
...
src/test/ts/king-move-validation.spec.ts
View file @
8938bc3b
...
...
@@ -21,7 +21,7 @@ export class TestKingMoves {
@
Test
(
"
A King cannot move more than 1 square
"
)
testCannotMoveMoreThanOneSquare
()
{
// TODO:
// Check it cannot move to squares C2, C3, C4, C6,
D
4, and
F4
// Check it cannot move to squares C2, C3, C4, C6,
E2, E6, G2, G
4, and
G6
}
...
...
src/test/ts/princess-move-validation.spec.ts
View file @
8938bc3b
...
...
@@ -18,12 +18,12 @@ export class TestPrincessMoves {
// moveE4_A8, moveE4_B1, moveE4_H7, moveE4_H1
}
@
Test
(
"
A Princess can move t
hree
squares horizontally and one square vertically
"
)
@
Test
(
"
A Princess can move t
wo
squares horizontally and one square vertically
"
)
testCanMoveTwoHorizontalAndOneVertical
()
{
// TODO
}
@
Test
(
"
A Princess can move t
hree
squares vertically and one square horizontally
"
)
@
Test
(
"
A Princess can move t
wo
squares vertically and one square horizontally
"
)
testCanMoveTwoVerticalAndOneHorizontal
()
{
// TODO
}
...
...
Write
Preview
Markdown
is supported
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