from typing import Tuple
from typing import List


def state_to_actions(state: Tuple[int], ind_to_loc: List[Tuple], empty: str) -> List[Tuple]:
    """Lookup the potential actions given the current state of the game.

    Args:
        state: tuple of int, game board state
        ind_to_loc: list of tuple, game state index to board location map
        empty: str, marker for empty board space

    Returns:
        actions: list of tuple, potential actions (board locations)
    """

    inds = [i for i, mark in enumerate(state) if mark == empty]
    actions = [ind_to_loc[ind] for ind in inds]
    return actions