MCPcopy Create free account

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

Functions290 in github.com/carlini/chess-llm

↓ 1 callersFunctionfetch_game_moves
(filename, game_id, offset)
generate_pgn_puzzles.py:60
↓ 1 callersFunctionfill_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 callersFunctionfinal_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 callersFunctionfirst_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 callersFunctiongame_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 callersFunctiongame_changed
Check whether the current game state is different from the previous game state.
lichess-bot/lichess-bot.py:773
↓ 1 callersFunctiongame_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 callersMethodgame_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 callersFunctiongenerate_mapping
(filename)
generate_pgn_puzzles.py:42
↓ 1 callersFunctiongetHomemadeEngine
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 callersFunctionget_book_move
Get a move from an opening book.
lichess-bot/engine_wrapper.py:657
↓ 1 callersFunctionget_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 callersFunctionget_chessdb_move
Get a move from chessdb.cn's opening book.
lichess-bot/engine_wrapper.py:748
↓ 1 callersFunctionget_data
()
generate_pgn_puzzles.py:35
↓ 1 callersFunctionget_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 callersMethodget_event_stream
Get a stream of the events (e.g. challenge, gameStart).
lichess-bot/lichess.py:291
↓ 1 callersMethodget_game_pgn
Get the PGN (Portable Game Notation) record of a game.
lichess-bot/lichess.py:338
↓ 1 callersMethodget_game_stream
Get stream of the in-game events (e.g. moves by the opponent).
lichess-bot/lichess.py:295
↓ 1 callersFunctionget_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 callersFunctionget_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 callersFunctionget_lichess_cloud_move
Get a move from the lichess's cloud analysis.
lichess-bot/engine_wrapper.py:790
↓ 1 callersFunctionget_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 callersMethodget_online_bots
Get a list of bots that are online.
lichess-bot/lichess.py:345
↓ 1 callersFunctionget_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 callersFunctionget_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 callersFunctionget_opening_explorer_move
Get a move from lichess's opening explorer.
lichess-bot/engine_wrapper.py:844
↓ 1 callersMethodget_opponent_info
Get the opponent's information and sends it to the engine.
lichess-bot/engine_wrapper.py:383
↓ 1 callersMethodget_pid
Get the pid of the engine.
lichess-bot/engine_wrapper.py:397
↓ 1 callersMethodget_profile
Return a simple profile for the bot that lichess-bot uses when testing.
lichess-bot/test_bot/lichess.py:169
↓ 1 callersMethodget_public_data
Get the public data of a bot.
lichess-bot/lichess.py:383
↓ 1 callersMethodget_query_pgn
(self, board)
chessllm.py:42
↓ 1 callersFunctionget_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 callersFunctiongood_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 callersFunctionhandle_challenge
Handle incoming challenges. It either accepts, declines, or queues them to accept later.
lichess-bot/lichess-bot.py:527
↓ 1 callersFunctionhandle_old_logs
Remove old logs.
lichess-bot/lichess-bot.py:120
↓ 1 callersFunctionhours
Create a timedelta duration in hours.
lichess-bot/timer.py:42
↓ 1 callersMethodin_block_list
Check if an opponent is in the block list to prevent future challenges.
lichess-bot/matchmaking.py:260
↓ 1 callersFunctioninsert_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 callersFunctionintro
Return the intro string.
lichess-bot/lichess-bot.py:976
↓ 1 callersFunctionis_managed
(key: str)
lichess-bot/engine_wrapper.py:77
↓ 1 callersMethodis_online
Check if lichess.org thinks the bot is online or not.
lichess-bot/lichess.py:378
↓ 1 callersMethodis_rate_limited
Check if a path template is rate limited.
lichess-bot/lichess.py:248
↓ 1 callersMethodis_supported
Whether the challenge is supported.
lichess-bot/model.py:90
↓ 1 callersMethodis_supported_mode
Check whether the mode is supported.
lichess-bot/model.py:65
↓ 1 callersMethodis_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 callersMethodis_supported_time_control
Check whether the time control is supported.
lichess-bot/model.py:36
↓ 1 callersMethodis_supported_variant
Check whether the variant is supported.
lichess-bot/model.py:32
↓ 1 callersMethodkeys
:return: All of the keys in this config.
lichess-bot/config.py:60
↓ 1 callersFunctionlichess_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 callersFunctionload_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 callersFunctionmain
()
uci_engine.py:22
↓ 1 callersFunctionmain
()
puzzle_solver.py:54
↓ 1 callersMethodmake_move
Make a move. :param game_id: The id of the game. :param move: The move to make.
lichess-bot/lichess.py:260
↓ 1 callersMethodmode
Get the mode of the challenge (rated or casual).
lichess-bot/model.py:121
↓ 1 callersMethodmy_remaining_time
How many seconds we have left.
lichess-bot/model.py:225
↓ 1 callersMethodname
Get the name of the engine.
lichess-bot/engine_wrapper.py:391
↓ 1 callersFunctionnext_event
Get the next event from the control queue.
lichess-bot/lichess-bot.py:371
↓ 1 callersFunctionnext_update
Get the next game state.
lichess-bot/lichess-bot.py:698
↓ 1 callersMethodnotify
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 callersMethodoffer_draw_or_resign
Offer draw or resign depending on the score of the engine.
lichess-bot/engine_wrapper.py:188
↓ 1 callersMethodperf
Get the bot's rating in every variant. Bullet, blitz, rapid etc. are considered different variants.
lichess-bot/matchmaking.py:130
↓ 1 callersMethodpgn_event
Get the event to write in the PGN file.
lichess-bot/model.py:183
↓ 1 callersFunctionpgn_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 callersMethodping
Ping the engine.
lichess-bot/engine_wrapper.py:404
↓ 1 callersMethodplay_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 callersFunctionprint_move_number
Log the move number.
lichess-bot/lichess-bot.py:692
↓ 1 callersMethodprint_stats
Print the engine stats.
lichess-bot/engine_wrapper.py:291
↓ 1 callersFunctionprocess_puzzles
(csv_filename, games_filename, mapping)
generate_pgn_puzzles.py:76
↓ 1 callersMethodrate_limit_time_left
How much time is left until we can use the path template normally.
lichess-bot/lichess.py:252
↓ 1 callersMethodreact
React to a received message. :param line: Information about the message.
lichess-bot/conversation.py:36
↓ 1 callersFunctionread_daily_challenges
Read the challenges we have created in the past 24 hours from a text file.
lichess-bot/matchmaking.py:23
↓ 1 callersMethodreadable_number
Convert number to a more human-readable format. e.g. 123456789 -> 123M.
lichess-bot/engine_wrapper.py:319
↓ 1 callersFunctionremove_managed_options
Remove the options managed by python-chess.
lichess-bot/engine_wrapper.py:75
↓ 1 callersMethodresign
Resign a game.
lichess-bot/lichess.py:329
↓ 1 callersMethodresult
Get the result of the game.
lichess-bot/model.py:231
↓ 1 callersFunctionsave_pgn_record
Write the game PGN record to a file.
lichess-bot/lichess-bot.py:956
↓ 1 callersFunctionsay_hello
Send the greetings to the chat rooms.
lichess-bot/lichess-bot.py:669
↓ 1 callersFunctionscore_gaviota_moves
Score all the moves using gaviota egtbs.
lichess-bot/engine_wrapper.py:1288
↓ 1 callersMethodsearch
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 callersMethodsearch
(self, board: chess.Board, *args: Any)
lichess-bot/strategies.py:110
↓ 1 callersMethodsend_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 callersFunctionsetup_board
Set up the board.
lichess-bot/lichess-bot.py:707
↓ 1 callersMethodshould_abort_now
Whether we should abort the game.
lichess-bot/model.py:213
↓ 1 callersMethodshould_create_challenge
Whether we should create a challenge.
lichess-bot/matchmaking.py:71
↓ 1 callersMethodshould_disconnect_now
Whether we should disconnect form the game.
lichess-bot/model.py:221
↓ 1 callersFunctionshould_exit_game
Whether we should exit a game.
lichess-bot/lichess-bot.py:737
↓ 1 callersMethodshould_terminate_now
Whether we should terminate the game.
lichess-bot/model.py:217
↓ 1 callersFunctionsingle_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 callersFunctionsolve_puzzle
(board, solution)
puzzle_solver.py:30
↓ 1 callersFunctionsort_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 callersFunctionstart
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 callersFunctionstart_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 callersFunctionstart_lichess_bot
Parse arguments passed to lichess-bot.py and starts lichess-bot.
lichess-bot/lichess-bot.py:987
↓ 1 callersFunctionstart_low_time_games
Start the games based on how much time we have left.
lichess-bot/lichess-bot.py:418
↓ 1 callersMethodstarting_timestamp
When the timer started.
lichess-bot/timer.py:101
↓ 1 callersFunctiontell_user_game_result
Log the game result.
lichess-bot/lichess-bot.py:783
↓ 1 callersMethodtime_control
Get the time control of the game.
lichess-bot/model.py:190
↓ 1 callersFunctiontry_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 callersMethodtry_moves
(self, board, next_text)
chessllm.py:61
↓ 1 callersMethodupdate_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
← previousnext →101–200 of 290, ranked by callers