MCPcopy Create free account

hub / github.com/carlini/chess-llm / functions

Functions290 in github.com/carlini/chess-llm

↓ 1 callersMethodupdate_user_profile
Update our user profile data, to get our latest rating.
lichess-bot/matchmaking.py:140
↓ 1 callersFunctionupgrade_account
Upgrade the account to a BOT account.
lichess-bot/lichess-bot.py:80
↓ 1 callersMethodupgrade_to_bot_account
Upgrade the account to a BOT account.
lichess-bot/lichess.py:256
↓ 1 callersMethodusername
Our username.
lichess-bot/matchmaking.py:135
↓ 1 callersFunctionvalidate_config
Check if the config is valid.
lichess-bot/config.py:263
↓ 1 callersFunctionwrite_daily_challenges
Write the challenges we have created in the past 24 hours to a text file.
lichess-bot/matchmaking.py:36
↓ 1 callersFunctionyears
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
Methodabort
Isn't used in tests.
lichess-bot/test_bot/lichess.py:147
Methodaccept_challenge
Set `self.game_accepted` to true.
lichess-bot/test_bot/lichess.py:161
Methodactual
(score: chess.engine.PovScore)
lichess-bot/engine_wrapper.py:190
Functionbackoff_handler
Log exceptions inside functions with the backoff decorator.
lichess-bot/lichess.py:61
Functionbackoff_handler
Log exceptions inside functions with the backoff decorator.
lichess-bot/test_bot/lichess.py:14
Methodcancel
Isn't used in tests.
lichess-bot/test_bot/lichess.py:212
Methodchallenge
Create a challenge.
lichess-bot/lichess.py:354
Methodchallenge
Isn't used in tests.
lichess-bot/test_bot/lichess.py:208
Methodchat
Isn't used in tests.
lichess-bot/test_bot/lichess.py:143
Functioncreate_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
Methoddecline_challenge
Isn't used in tests.
lichess-bot/test_bot/lichess.py:165
Functiondisable_restart
Disable restarting lichess-bot when errors occur. Used during testing.
lichess-bot/lichess-bot.py:59
Functiondo_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
Functiondtm_scorer
Score a position based on a gaviota DTM egtb.
lichess-bot/engine_wrapper.py:1184
Functiondtz_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
Functiongame_error_handler
Handle game errors.
lichess-bot/lichess-bot.py:201
Methodget_event_stream
Send the `EventStream`.
lichess-bot/test_bot/lichess.py:151
Methodget_game_pgn
Return a simple PGN.
lichess-bot/test_bot/lichess.py:190
Methodget_game_stream
Send the `GameStream`.
lichess-bot/test_bot/lichess.py:157
Methodget_ongoing_games
Return that the bot isn't playing a game.
lichess-bot/test_bot/lichess.py:182
Methodget_online_bots
Return that the only bot online is us.
lichess-bot/test_bot/lichess.py:204
Methodget_pid
Homemade engines don't have a pid, so we return a question mark.
lichess-bot/engine_wrapper.py:520
Functiongood_enough
(possible_move: LICHESS_EGTB_MOVE)
lichess-bot/engine_wrapper.py:990
Methodidentity
(x: Any)
lichess-bot/engine_wrapper.py:339
Functionis_final
If `is_final` returns True then we won't retry.
lichess-bot/lichess.py:56
Functionis_final
If `is_final` returns True then we won't retry.
lichess-bot/lichess-bot.py:75
Methodis_online
Return that a bot is online.
lichess-bot/test_bot/lichess.py:220
Methodis_suitable_opponent
(bot: USER_PROFILE_TYPE)
lichess-bot/matchmaking.py:182
Methoditer_lines
Send the events to lichess-bot.
lichess-bot/test_bot/lichess.py:104
Functionlogging_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
Methodmake_move
Write a move to `./logs/states.txt`, to be read by the opponent.
lichess-bot/test_bot/lichess.py:133
Methodmethod
(*args: Any, **kwargs: Any)
lichess-bot/engine_wrapper.py:572
Methodonline_book_get
Isn't used in tests.
lichess-bot/test_bot/lichess.py:216
Functionplay_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
Functionpytest_sessionfinish
Remove files created when testing lichess-bot.
lichess-bot/test_bot/conftest.py:7
Methodreadable_score
Convert the score to a more human-readable format.
lichess-bot/engine_wrapper.py:296
Methodreadable_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
Methodreadable_wdl
Convert the WDL score to a percentage, so it is more human-readable.
lichess-bot/engine_wrapper.py:306
Methodready_for_challenge
(bot: USER_PROFILE_TYPE)
lichess-bot/matchmaking.py:194
Methodresign
Isn't used in tests.
lichess-bot/test_bot/lichess.py:186
Methodscore_near_draw
(score: chess.engine.PovScore)
lichess-bot/engine_wrapper.py:202
Methodscore_near_loss
(score: chess.engine.PovScore)
lichess-bot/engine_wrapper.py:213
Methodsearch
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
Methodsearch
Choose a random move.
lichess-bot/strategies.py:34
Methodsearch
Choose the first move alphabetically.
lichess-bot/strategies.py:42
Methodsearch
Choose the first move alphabetically in uci representation.
lichess-bot/strategies.py:52
Methodsearch
Choose a move using multiple different methods. :param board: The current position. :param time_limit: Conditions for how lo
lichess-bot/strategies.py:66
Functionsignal_handler
Terminate lichess-bot.
lichess-bot/lichess-bot.py:65
Functiontest_homemade
Test lichess-bot with a homemade engine running Stockfish (Homemade).
lichess-bot/test_bot/test_bot.py:274
Functiontest_lc0
Test lichess-bot with Leela Chess Zero (UCI).
lichess-bot/test_bot/test_bot.py:221
Functiontest_sf
Test lichess-bot with Stockfish (UCI).
lichess-bot/test_bot/test_bot.py:197
Functiontest_sjeng
Test lichess-bot with Sjeng (XBoard).
lichess-bot/test_bot/test_bot.py:248
Functionthread_for_test
Play the moves for the opponent of lichess-bot.
lichess-bot/test_bot/test_bot.py:83
Methodto_readable_item
(stat: str, value: Any)
lichess-bot/engine_wrapper.py:353
Methodupgrade_to_bot_account
Isn't used in tests.
lichess-bot/test_bot/lichess.py:129
Functionwatch_control_stream
Put the events in a queue.
lichess-bot/lichess-bot.py:89
← previous201–290 of 290, ranked by callers