Skip to content

Commit

Permalink
Merge branch 'lichess-bot-devs:master' into python-3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkZH authored Oct 16, 2023
2 parents 5814c3d + a5181b7 commit 61759ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion engine_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def game_clock_time(board: chess.Board,

def check_for_draw_offer(game: model.Game) -> bool:
"""Check if the bot was offered a draw."""
return game.state.get(f"{game.opponent_color[0]}draw", False)
return bool(game.state.get(f"{game.opponent_color[0]}draw"))


def get_book_move(board: chess.Board, game: model.Game,
Expand Down
4 changes: 2 additions & 2 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pytest==7.4.2
pytest-timeout==2.1.0
pytest-timeout==2.2.0
flake8==6.1.0
flake8-markdown==0.5.0
flake8-docstrings==1.7.0
mypy==1.5.1
mypy==1.6.0
types-requests==2.31.0.8
types-PyYAML==6.0.12.12
2 changes: 1 addition & 1 deletion versioning.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lichess_bot_version: 2023.10.7.1
lichess_bot_version: 2023.10.16.1
minimum_python_version: '3.9'
deprecated_python_version: '3.8'
deprecation_date: 2023-05-01

0 comments on commit 61759ec

Please sign in to comment.