Skip to content

Commit

Permalink
added .codacy.yml
Browse files Browse the repository at this point in the history
removed () from assert
  • Loading branch information
QueensGambit committed Jun 29, 2021
1 parent 5e643cc commit aa86385
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
exclude_paths:
- '*.md'
- 'engine/3rdparty/*'
12 changes: 6 additions & 6 deletions DeepCrazyhouse/src/domain/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,14 +341,14 @@ def get_check_move_indices(board, legal_moves):
if __name__ == '__main__':
print("Unit-Test: opposite_colored_bishops() & opposite_colors()")
b = chess.Board()
assert(not opposite_colored_bishops(b))
assert not opposite_colored_bishops(b)
b = chess.Board(fen='r4rk1/1pp2p2/3pq1np/pP2p1p1/P3Pn2/2PPPNB1/2Q3PP/3R1RK1 b - - 0 23')
assert(not opposite_colored_bishops(b))
assert not opposite_colored_bishops(b)
b = chess.Board(fen='r4rk1/1pp1bp2/3pq1np/pP2p1p1/P3Pn2/2PPPNB1/2Q3PP/3R1RK1 b - - 0 1')
assert(not opposite_colored_bishops(b))
assert not opposite_colored_bishops(b)
b = chess.Board(fen='r4rk1/1ppbbp2/3pq1np/pP2p1p1/P3Pn2/1BPPPN2/2Q3PP/3R1RK1 b - - 0 1')
assert(not opposite_colored_bishops(b))
assert not opposite_colored_bishops(b)
b = chess.Board(fen='r4rk1/1ppb1p2/3pq1np/pP2p1p1/P3Pn2/2PPPNB1/2Q3PP/3R1RK1 b - - 0 1')
assert(opposite_colored_bishops(b))
assert opposite_colored_bishops(b)
b = chess.Board(fen='r4rk1/1pp2pb1/3pq1np/pP2p1p1/P3Pn2/2PPPN2/B1Q3PP/3R1RK1 b - - 0 1')
assert(opposite_colored_bishops(b))
assert opposite_colored_bishops(b)

0 comments on commit aa86385

Please sign in to comment.