Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/carlini/chess-llm
/ functions
Functions
290 in github.com/carlini/chess-llm
⨍
Functions
290
◇
Types & classes
28
↓ 1 callers
Method
update_user_profile
Update our user profile data, to get our latest rating.
lichess-bot/matchmaking.py:140
↓ 1 callers
Function
upgrade_account
Upgrade the account to a BOT account.
lichess-bot/lichess-bot.py:80
↓ 1 callers
Method
upgrade_to_bot_account
Upgrade the account to a BOT account.
lichess-bot/lichess.py:256
↓ 1 callers
Method
username
Our username.
lichess-bot/matchmaking.py:135
↓ 1 callers
Function
validate_config
Check if the config is valid.
lichess-bot/config.py:263
↓ 1 callers
Function
write_daily_challenges
Write the challenges we have created in the past 24 hours to a text file.
lichess-bot/matchmaking.py:36
↓ 1 callers
Function
years
Create a timedelta duration in median years--i.e., 365 days.
lichess-bot/timer.py:52
Method
__bool__
Whether `self.config` is empty.
lichess-bot/config.py:69
Method
__getattr__
Enable the use of `config.key1.key2`. :param name: The key to get its value. :return: The value of the key.
lichess-bot/config.py:37
Method
__getattr__
Provide the property `self.engine`.
lichess-bot/engine_wrapper.py:568
Method
__getstate__
Get `self.config`.
lichess-bot/config.py:73
Method
__init__
(self, api_key, config, **override)
chessllm.py:30
Method
__init__
:param parameters: A `dict` containing the config for the bot.
lichess-bot/config.py:33
Method
__init__
Initialize the values of the wrapper used by all engines (UCI, XBoard, Homemade). :param options: The options to send to the engine.
lichess-bot/engine_wrapper.py:89
Method
__init__
Communicate with XBoard engines. :param commands: The engine path and commands to send to the engine. e.g. ["engines/engine.exe", "-
lichess-bot/engine_wrapper.py:466
Method
__init__
Initialize the values of the engine that all homemade engines inherit. :param options: The options to send to the engine. :p
lichess-bot/engine_wrapper.py:506
Method
__init__
:param name: The name to send to the chat.
lichess-bot/engine_wrapper.py:560
Method
__init__
Start the timer. :param duration: The duration of time before Timer.is_expired() returns True. :param backdated_timestamp: W
lichess-bot/timer.py:71
Method
__init__
Communication between lichess-bot and the game chats. :param game: The game that the bot will send messages to. :param engin
lichess-bot/conversation.py:17
Method
__init__
Information about the message.
lichess-bot/conversation.py:95
Method
__init__
Communication with lichess.org (and chessdb.cn for getting moves). :param token: The bot's token. :param url: The base url (
lichess-bot/lichess.py:72
Method
__init__
(self, *args, **kwargs)
lichess-bot/strategies.py:100
Method
__init__
:param user_profile: Information about our bot.
lichess-bot/model.py:18
Method
__init__
:param abort_time: How long to wait before aborting the game.
lichess-bot/model.py:147
Method
__init__
:param player_info: Contains information about a player.
lichess-bot/model.py:265
Method
__init__
Initialize values needed for matchmaking.
lichess-bot/matchmaking.py:46
Method
__init__
Initialize `self.moves_sent` to an empty string. It stores the moves that we have already sent.
lichess-bot/test_bot/lichess.py:24
Method
__init__
:param sent_game: If we have already sent the `gameStart` event, so we don't send it again.
lichess-bot/test_bot/lichess.py:100
Method
__init__
Has the same parameters as `lichess.Lichess` to be able to be used in its placed without any modification.
lichess-bot/test_bot/lichess.py:122
Method
__or__
Create a copy of this configuration that is updated with values from the parameter.
lichess-bot/config.py:64
Method
__repr__
Get a string representation of `Challenge`.
lichess-bot/model.py:129
Method
__repr__
Get a string representation of `Game`.
lichess-bot/model.py:257
Method
__repr__
Get a string representation of `Player`.
lichess-bot/model.py:282
Method
__setstate__
Set `self.config`.
lichess-bot/config.py:77
Method
abort
Isn't used in tests.
lichess-bot/test_bot/lichess.py:147
Method
accept_challenge
Set `self.game_accepted` to true.
lichess-bot/test_bot/lichess.py:161
Method
actual
(score: chess.engine.PovScore)
lichess-bot/engine_wrapper.py:190
Function
backoff_handler
Log exceptions inside functions with the backoff decorator.
lichess-bot/lichess.py:61
Function
backoff_handler
Log exceptions inside functions with the backoff decorator.
lichess-bot/test_bot/lichess.py:14
Method
cancel
Isn't used in tests.
lichess-bot/test_bot/lichess.py:212
Method
challenge
Create a challenge.
lichess-bot/lichess.py:354
Method
challenge
Isn't used in tests.
lichess-bot/test_bot/lichess.py:208
Method
chat
Isn't used in tests.
lichess-bot/test_bot/lichess.py:143
Function
create_engine
Create the engine. Use in a with-block to automatically close the engine when exiting the game. :param engine_config: The options for t
lichess-bot/engine_wrapper.py:36
Method
decline_challenge
Isn't used in tests.
lichess-bot/test_bot/lichess.py:165
Function
disable_restart
Disable restarting lichess-bot when errors occur. Used during testing.
lichess-bot/lichess-bot.py:59
Function
do_correspondence_ping
Tell the engine to check the correspondence games. :param period: How many seconds to wait before sending a correspondence ping.
lichess-bot/lichess-bot.py:109
Function
dtm_scorer
Score a position based on a gaviota DTM egtb.
lichess-bot/engine_wrapper.py:1184
Function
dtz_scorer
Score a position based on a syzygy DTZ egtb. For a zeroing move (capture or pawn move), a DTZ of +/-0.5 is returned.
lichess-bot/engine_wrapper.py:1117
Function
game_error_handler
Handle game errors.
lichess-bot/lichess-bot.py:201
Method
get_event_stream
Send the `EventStream`.
lichess-bot/test_bot/lichess.py:151
Method
get_game_pgn
Return a simple PGN.
lichess-bot/test_bot/lichess.py:190
Method
get_game_stream
Send the `GameStream`.
lichess-bot/test_bot/lichess.py:157
Method
get_ongoing_games
Return that the bot isn't playing a game.
lichess-bot/test_bot/lichess.py:182
Method
get_online_bots
Return that the only bot online is us.
lichess-bot/test_bot/lichess.py:204
Method
get_pid
Homemade engines don't have a pid, so we return a question mark.
lichess-bot/engine_wrapper.py:520
Function
good_enough
(possible_move: LICHESS_EGTB_MOVE)
lichess-bot/engine_wrapper.py:990
Method
identity
(x: Any)
lichess-bot/engine_wrapper.py:339
Function
is_final
If `is_final` returns True then we won't retry.
lichess-bot/lichess.py:56
Function
is_final
If `is_final` returns True then we won't retry.
lichess-bot/lichess-bot.py:75
Method
is_online
Return that a bot is online.
lichess-bot/test_bot/lichess.py:220
Method
is_suitable_opponent
(bot: USER_PROFILE_TYPE)
lichess-bot/matchmaking.py:182
Method
iter_lines
Send the events to lichess-bot.
lichess-bot/test_bot/lichess.py:104
Function
logging_listener_proc
Handle events from the logging queue. This allows the logs from inside a thread to be printed. They are added to the queue, so they are
lichess-bot/lichess-bot.py:173
Method
make_move
Write a move to `./logs/states.txt`, to be read by the opponent.
lichess-bot/test_bot/lichess.py:133
Method
method
(*args: Any, **kwargs: Any)
lichess-bot/engine_wrapper.py:572
Method
online_book_get
Isn't used in tests.
lichess-bot/test_bot/lichess.py:216
Function
play_game
Play a game. :param li: Provides communication with lichess.org. :param game_id: The id of the game. :param control_queue: The contr
lichess-bot/lichess-bot.py:545
Function
pytest_sessionfinish
Remove files created when testing lichess-bot.
lichess-bot/test_bot/conftest.py:7
Method
readable_score
Convert the score to a more human-readable format.
lichess-bot/engine_wrapper.py:296
Method
readable_time
Convert time given as a number into minutes and seconds, so it is more human-readable. e.g. 123 -> 2m 3s.
lichess-bot/engine_wrapper.py:311
Method
readable_wdl
Convert the WDL score to a percentage, so it is more human-readable.
lichess-bot/engine_wrapper.py:306
Method
ready_for_challenge
(bot: USER_PROFILE_TYPE)
lichess-bot/matchmaking.py:194
Method
resign
Isn't used in tests.
lichess-bot/test_bot/lichess.py:186
Method
score_near_draw
(score: chess.engine.PovScore)
lichess-bot/engine_wrapper.py:202
Method
score_near_loss
(score: chess.engine.PovScore)
lichess-bot/engine_wrapper.py:213
Method
search
Choose a move. The method to be implemented in your homemade engine. NOTE: This method must return an instance of "chess.eng
lichess-bot/engine_wrapper.py:524
Method
search
Choose a random move.
lichess-bot/strategies.py:34
Method
search
Choose the first move alphabetically.
lichess-bot/strategies.py:42
Method
search
Choose the first move alphabetically in uci representation.
lichess-bot/strategies.py:52
Method
search
Choose a move using multiple different methods. :param board: The current position. :param time_limit: Conditions for how lo
lichess-bot/strategies.py:66
Function
signal_handler
Terminate lichess-bot.
lichess-bot/lichess-bot.py:65
Function
test_homemade
Test lichess-bot with a homemade engine running Stockfish (Homemade).
lichess-bot/test_bot/test_bot.py:274
Function
test_lc0
Test lichess-bot with Leela Chess Zero (UCI).
lichess-bot/test_bot/test_bot.py:221
Function
test_sf
Test lichess-bot with Stockfish (UCI).
lichess-bot/test_bot/test_bot.py:197
Function
test_sjeng
Test lichess-bot with Sjeng (XBoard).
lichess-bot/test_bot/test_bot.py:248
Function
thread_for_test
Play the moves for the opponent of lichess-bot.
lichess-bot/test_bot/test_bot.py:83
Method
to_readable_item
(stat: str, value: Any)
lichess-bot/engine_wrapper.py:353
Method
upgrade_to_bot_account
Isn't used in tests.
lichess-bot/test_bot/lichess.py:129
Function
watch_control_stream
Put the events in a queue.
lichess-bot/lichess-bot.py:89
← previous
201–290 of 290, ranked by callers