def to_coord(pos):
    """Convert a position on the board (standard letter+number representation) to a coordinate

       >>> to_coord('a1')
       (0,0)
       >>> to_coord('g8')
       (6,7)
    """
    return 'abcdefgh'.index(pos[0]), int(pos[1]) - 1