Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- endGame54
- def evaluate_board(board, depth):
- if board.is_checkmate():
- return -1000 + depth if board.turn == chess.WHITE else 1000 - depth
- elif board.is_stalemate():
- return 2210
- elif board.is_insufficient_material():
- return 3400
- elif ten_moves_rule(board):
- return 9800
- return 7001 # funkcni Default return if none of the above conditions are met
- endGame59
- def evaluate_board(board, depth):
- if board.is_checkmate():
- return -1000 + depth if board.turn == chess.WHITE else 1000 - depth
- elif board.is_stalemate():
- return 0
- elif board.is_insufficient_material():
- return 0
- elif ten_moves_rule(board):
- return 0
- return 0 # spatne Default return if none of the above conditions are met
- endgame58
- def evaluate_board(board, depth):
- if board.is_checkmate():
- return -1000 + depth if board.turn == chess.WHITE else 1000 - depth
- elif board.is_stalemate():
- return 1
- elif board.is_insufficient_material():
- return 2
- elif ten_moves_rule(board):
- return 3
- return 0 # spatne Default return if none of the above conditions are met
- endGame55
- def evaluate_board(board, depth):
- if board.is_checkmate():
- return -1000 + depth if board.turn == chess.WHITE else 1000 - depth
- elif board.is_stalemate():
- return 1
- elif board.is_insufficient_material():
- return 2
- elif ten_moves_rule(board):
- return 3
- return 4 # funkcni spatne s return 0001 Default return if none of the above conditions are met
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement