We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f31e271 commit 9bb38a3Copy full SHA for 9bb38a3
1 file changed
__tests__/regression.test.ts
@@ -29,6 +29,15 @@ describe('Regression Tests', () => {
29
expect(chess.moves().join(' ')).toBe('Kd2 Ke2 Kxf2 Kf1 Kd1')
30
})
31
32
+ it('Github Issue ##577 - pawn on edge rank should have no moves', () => {
33
+ const chess = new Chess()
34
+ chess.clear()
35
+ chess.put({ type: 'k', color: 'w' }, 'e1')
36
+ chess.put({ type: 'k', color: 'b' }, 'e8')
37
+ chess.put({ type: 'p', color: 'w' }, 'h8')
38
+ expect(chess.moves({ square: 'h8', verbose: true })).toEqual([])
39
+ })
40
+
41
it('Github Issue #85 (white) - SetUp and FEN should be accepted in loadPgn', () => {
42
const chess = new Chess()
43
const pgn = [
0 commit comments