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
Function
fetch_game_moves
(filename, game_id, offset)
generate_pgn_puzzles.py:60
↓ 1 callers
Function
fill_missing_pgn_headers
Fill in any missing headers in the PGN record provided by lichess.org with information from `game`. :param game_record: A `chess.pgn.Game` o
lichess-bot/lichess-bot.py:906
↓ 1 callers
Function
final_queue_entries
Log the game that ended or we disconnected from, and sends a `local_game_done` for the game. If this is an unfinished correspondence game,
lichess-bot/lichess-bot.py:757
↓ 1 callers
Function
first_move_time
Determine time limit for the first move in the game. :param game: The game that the bot is playing. :return: The time to choose the firs
lichess-bot/engine_wrapper.py:613
↓ 1 callers
Function
game_category
Get the game type (e.g. bullet, atomic, classical). Lichess has one rating for every variant regardless of time control. :param variant:
lichess-bot/matchmaking.py:331
↓ 1 callers
Function
game_changed
Check whether the current game state is different from the previous game state.
lichess-bot/lichess-bot.py:773
↓ 1 callers
Function
game_clock_time
Get the time to play by the engine in realtime games. :param board: The current positions. :param game: The game that the bot is playing
lichess-bot/engine_wrapper.py:626
↓ 1 callers
Method
game_done
Reset the timer for when the last game ended, and prints the earliest that the next challenge will be created.
lichess-bot/matchmaking.py:240
↓ 1 callers
Function
generate_mapping
(filename)
generate_pgn_puzzles.py:42
↓ 1 callers
Function
getHomemadeEngine
Get the homemade engine with name `name`. e.g. If `name` is `RandomMove` then we will return `strategies.RandomMove`. :param name: The name
lichess-bot/engine_wrapper.py:580
↓ 1 callers
Function
get_book_move
Get a move from an opening book.
lichess-bot/engine_wrapper.py:657
↓ 1 callers
Function
get_chessdb_egtb_move
Get a move from chessdb's egtb. If `move_quality` is `suggest`, then it will return a list of moves for the engine to choose from.
lichess-bot/engine_wrapper.py:1013
↓ 1 callers
Function
get_chessdb_move
Get a move from chessdb.cn's opening book.
lichess-bot/engine_wrapper.py:748
↓ 1 callers
Function
get_data
()
generate_pgn_puzzles.py:35
↓ 1 callers
Function
get_egtb_move
Get a move from a local egtb. If `move_quality` is `suggest`, then it will return a list of moves for the engine to choose from.
lichess-bot/engine_wrapper.py:931
↓ 1 callers
Method
get_event_stream
Get a stream of the events (e.g. challenge, gameStart).
lichess-bot/lichess.py:291
↓ 1 callers
Method
get_game_pgn
Get the PGN (Portable Game Notation) record of a game.
lichess-bot/lichess.py:338
↓ 1 callers
Method
get_game_stream
Get stream of the in-game events (e.g. moves by the opponent).
lichess-bot/lichess.py:295
↓ 1 callers
Function
get_gaviota
Get a move from local gaviota egtbs. If `move_quality` is `suggest`, then it will return a list of moves for the engine to choose from.
lichess-bot/engine_wrapper.py:1133
↓ 1 callers
Function
get_headers
Create local headers to be written in the PGN file. :param game: Contains information about the game (e.g. the players' names). :return:
lichess-bot/lichess-bot.py:920
↓ 1 callers
Function
get_lichess_cloud_move
Get a move from the lichess's cloud analysis.
lichess-bot/engine_wrapper.py:790
↓ 1 callers
Function
get_lichess_egtb_move
Get a move from lichess's egtb. If `move_quality` is `suggest`, then it will return a list of moves for the engine to choose from.
lichess-bot/engine_wrapper.py:960
↓ 1 callers
Method
get_online_bots
Get a list of bots that are online.
lichess-bot/lichess.py:345
↓ 1 callers
Function
get_online_egtb_move
Get a move from an online egtb (either by lichess or chessdb). If `move_quality` is `suggest`, then it will return a list of moves for the e
lichess-bot/engine_wrapper.py:894
↓ 1 callers
Function
get_online_move
Get a move from an online source. If `move_quality` is `suggest`, then it will return a list of moves for the engine to choose from.
lichess-bot/engine_wrapper.py:696
↓ 1 callers
Function
get_opening_explorer_move
Get a move from lichess's opening explorer.
lichess-bot/engine_wrapper.py:844
↓ 1 callers
Method
get_opponent_info
Get the opponent's information and sends it to the engine.
lichess-bot/engine_wrapper.py:383
↓ 1 callers
Method
get_pid
Get the pid of the engine.
lichess-bot/engine_wrapper.py:397
↓ 1 callers
Method
get_profile
Return a simple profile for the bot that lichess-bot uses when testing.
lichess-bot/test_bot/lichess.py:169
↓ 1 callers
Method
get_public_data
Get the public data of a bot.
lichess-bot/lichess.py:383
↓ 1 callers
Method
get_query_pgn
(self, board)
chessllm.py:42
↓ 1 callers
Function
get_syzygy
Get a move from local syzygy egtbs. If `move_quality` is `suggest`, then it will return a list of moves for the engine to choose from.
lichess-bot/engine_wrapper.py:1065
↓ 1 callers
Function
good_enough_gaviota_moves
Get the moves that are good enough to consider. :param good_moves: All the moves to choose from. :param best_dtm: The best DTM score of
lichess-bot/engine_wrapper.py:1202
↓ 1 callers
Function
handle_challenge
Handle incoming challenges. It either accepts, declines, or queues them to accept later.
lichess-bot/lichess-bot.py:527
↓ 1 callers
Function
handle_old_logs
Remove old logs.
lichess-bot/lichess-bot.py:120
↓ 1 callers
Function
hours
Create a timedelta duration in hours.
lichess-bot/timer.py:42
↓ 1 callers
Method
in_block_list
Check if an opponent is in the block list to prevent future challenges.
lichess-bot/matchmaking.py:260
↓ 1 callers
Function
insert_default_values
Insert the default values of most keys to the config if they are missing. :param CONFIG: The bot's config.
lichess-bot/config.py:148
↓ 1 callers
Function
intro
Return the intro string.
lichess-bot/lichess-bot.py:976
↓ 1 callers
Function
is_managed
(key: str)
lichess-bot/engine_wrapper.py:77
↓ 1 callers
Method
is_online
Check if lichess.org thinks the bot is online or not.
lichess-bot/lichess.py:378
↓ 1 callers
Method
is_rate_limited
Check if a path template is rate limited.
lichess-bot/lichess.py:248
↓ 1 callers
Method
is_supported
Whether the challenge is supported.
lichess-bot/model.py:90
↓ 1 callers
Method
is_supported_mode
Check whether the mode is supported.
lichess-bot/model.py:65
↓ 1 callers
Method
is_supported_recent
Check whether we have played a lot of games with this opponent recently. Only used when the oppoennt is a BOT.
lichess-bot/model.py:69
↓ 1 callers
Method
is_supported_time_control
Check whether the time control is supported.
lichess-bot/model.py:36
↓ 1 callers
Method
is_supported_variant
Check whether the variant is supported.
lichess-bot/model.py:32
↓ 1 callers
Method
keys
:return: All of the keys in this config.
lichess-bot/config.py:60
↓ 1 callers
Function
lichess_bot_main
Handle all the games and challenges. :param li: Provides communication with lichess.org. :param user_profile: Information on our bot.
lichess-bot/lichess-bot.py:270
↓ 1 callers
Function
load_config
Read the config. :param config_file: The filename of the config (usually `config.yml`). :return: A `Configuration` object containing the
lichess-bot/config.py:350
↓ 1 callers
Function
main
()
uci_engine.py:22
↓ 1 callers
Function
main
()
puzzle_solver.py:54
↓ 1 callers
Method
make_move
Make a move. :param game_id: The id of the game. :param move: The move to make.
lichess-bot/lichess.py:260
↓ 1 callers
Method
mode
Get the mode of the challenge (rated or casual).
lichess-bot/model.py:121
↓ 1 callers
Method
my_remaining_time
How many seconds we have left.
lichess-bot/model.py:225
↓ 1 callers
Method
name
Get the name of the engine.
lichess-bot/engine_wrapper.py:391
↓ 1 callers
Function
next_event
Get the next event from the control queue.
lichess-bot/lichess-bot.py:371
↓ 1 callers
Function
next_update
Get the next game state.
lichess-bot/lichess-bot.py:698
↓ 1 callers
Method
notify
Enable the use of `self.engine.option1`. The EngineWrapper class sometimes calls methods on "self.engine". "self.engine" is
lichess-bot/engine_wrapper.py:534
↓ 1 callers
Method
offer_draw_or_resign
Offer draw or resign depending on the score of the engine.
lichess-bot/engine_wrapper.py:188
↓ 1 callers
Method
perf
Get the bot's rating in every variant. Bullet, blitz, rapid etc. are considered different variants.
lichess-bot/matchmaking.py:130
↓ 1 callers
Method
pgn_event
Get the event to write in the PGN file.
lichess-bot/model.py:183
↓ 1 callers
Function
pgn_game_record
Return the text of the game's PGN. :param li: Provides communication with lichess.org. :param config: The config that the bot will use.
lichess-bot/lichess-bot.py:844
↓ 1 callers
Method
ping
Ping the engine.
lichess-bot/engine_wrapper.py:404
↓ 1 callers
Method
play_move
Play a move. :param board: The current position. :param game: The game that the bot is playing. :param li: Provides
lichess-bot/engine_wrapper.py:103
↓ 1 callers
Function
print_move_number
Log the move number.
lichess-bot/lichess-bot.py:692
↓ 1 callers
Method
print_stats
Print the engine stats.
lichess-bot/engine_wrapper.py:291
↓ 1 callers
Function
process_puzzles
(csv_filename, games_filename, mapping)
generate_pgn_puzzles.py:76
↓ 1 callers
Method
rate_limit_time_left
How much time is left until we can use the path template normally.
lichess-bot/lichess.py:252
↓ 1 callers
Method
react
React to a received message. :param line: Information about the message.
lichess-bot/conversation.py:36
↓ 1 callers
Function
read_daily_challenges
Read the challenges we have created in the past 24 hours from a text file.
lichess-bot/matchmaking.py:23
↓ 1 callers
Method
readable_number
Convert number to a more human-readable format. e.g. 123456789 -> 123M.
lichess-bot/engine_wrapper.py:319
↓ 1 callers
Function
remove_managed_options
Remove the options managed by python-chess.
lichess-bot/engine_wrapper.py:75
↓ 1 callers
Method
resign
Resign a game.
lichess-bot/lichess.py:329
↓ 1 callers
Method
result
Get the result of the game.
lichess-bot/model.py:231
↓ 1 callers
Function
save_pgn_record
Write the game PGN record to a file.
lichess-bot/lichess-bot.py:956
↓ 1 callers
Function
say_hello
Send the greetings to the chat rooms.
lichess-bot/lichess-bot.py:669
↓ 1 callers
Function
score_gaviota_moves
Score all the moves using gaviota egtbs.
lichess-bot/engine_wrapper.py:1288
↓ 1 callers
Method
search
Tell the engine to search. :param board: The current position. :param time_limit: Conditions for how long the engine can sea
lichess-bot/engine_wrapper.py:219
↓ 1 callers
Method
search
(self, board: chess.Board, *args: Any)
lichess-bot/strategies.py:110
↓ 1 callers
Method
send_game_result
Inform engine of the game ending. :param game: The final game state from lichess. :param board: The final board state.
lichess-bot/engine_wrapper.py:408
↓ 1 callers
Function
setup_board
Set up the board.
lichess-bot/lichess-bot.py:707
↓ 1 callers
Method
should_abort_now
Whether we should abort the game.
lichess-bot/model.py:213
↓ 1 callers
Method
should_create_challenge
Whether we should create a challenge.
lichess-bot/matchmaking.py:71
↓ 1 callers
Method
should_disconnect_now
Whether we should disconnect form the game.
lichess-bot/model.py:221
↓ 1 callers
Function
should_exit_game
Whether we should exit a game.
lichess-bot/lichess-bot.py:737
↓ 1 callers
Method
should_terminate_now
Whether we should terminate the game.
lichess-bot/model.py:217
↓ 1 callers
Function
single_move_time
Calculate time to search in correspondence games. :param board: The current positions. :param game: The game that the bot is playing.
lichess-bot/engine_wrapper.py:592
↓ 1 callers
Function
solve_puzzle
(board, solution)
puzzle_solver.py:30
↓ 1 callers
Function
sort_challenges
Sort the challenges. They can be sorted either by rating (the best challenger is accepted first), or by time (the first challenger is ac
lichess-bot/lichess-bot.py:459
↓ 1 callers
Function
start
Start lichess-bot. :param li: Provides communication with lichess.org. :param user_profile: Information on our bot. :param config: T
lichess-bot/lichess-bot.py:206
↓ 1 callers
Function
start_game
Start a game. :param event: The gameStart event. :param pool: The thread pool that the game is added to, so they can be run asynchronous
lichess-bot/lichess-bot.py:482
↓ 1 callers
Function
start_lichess_bot
Parse arguments passed to lichess-bot.py and starts lichess-bot.
lichess-bot/lichess-bot.py:987
↓ 1 callers
Function
start_low_time_games
Start the games based on how much time we have left.
lichess-bot/lichess-bot.py:418
↓ 1 callers
Method
starting_timestamp
When the timer started.
lichess-bot/timer.py:101
↓ 1 callers
Function
tell_user_game_result
Log the game result.
lichess-bot/lichess-bot.py:783
↓ 1 callers
Method
time_control
Get the time control of the game.
lichess-bot/model.py:190
↓ 1 callers
Function
try_get_pgn_game_record
Call `print_pgn_game_record` to write the game to a PGN file and handle errors raised by it. :param li: Provides communication with lichess.
lichess-bot/lichess-bot.py:823
↓ 1 callers
Method
try_moves
(self, board, next_text)
chessllm.py:61
↓ 1 callers
Method
update_daily_challenge_record
Record timestamp of latest challenge and update minimum wait time. As the number of challenges in a day increase, the minimum wai
lichess-bot/matchmaking.py:115
← previous
next →
101–200 of 290, ranked by callers