from minesweepervariants.abs.board import AbstractBoard
from . import AbstractClueSharp

class Rule1L2sharp(AbstractClueSharp):
    name = ["1L2#", "误差 + 标签"]
    doc = ("包含以下规则: [1L], [1L2X], [1L2D], [1L2M], [1L2A]\n"
              "使用[1L2#:]以去除[1L2A]")
        
    def __init__(self, board: "AbstractBoard" = None, data=None) -> None:
        rules_name = ["1L", "1L2X", "1L2D", "1L2M"]
        if data is None:
            rules_name += ["1L2A"]
        super().__init__(rules_name, board, data)
