14 def __init__(self, opening_book: Literal[
"default",
"8-ply",
"12-ply",
"12-ply-dist"] |
None =
"default") ->
None:
15 """Initializes the BitBully agent with the specified opening book.
18 opening_book (Literal["default", "8-ply", "12-ply", "12-ply-dist"] | None):
19 The type of opening book to use. Options are:
20 - "default": Uses the default 12-ply distance-based opening book.
21 - "8-ply": Uses an 8-ply opening book.
22 - "12-ply": Uses a 12-ply opening book.
23 - "12-ply-dist": Uses a 12-ply distance-based opening book.
24 - None: No opening book will be used.
26 from pathlib
import Path
28 import bitbully_databases
as bbd
33 db_path = bbd.BitBullyDatabases.get_database_path(opening_book)