diff --git a/solve/states/rooms.py b/solve/states/rooms.py index 47ffd64..72be6df 100644 --- a/solve/states/rooms.py +++ b/solve/states/rooms.py @@ -165,38 +165,4 @@ def init_rooms( ) -def init_rooms_from_players( - players: Sequence[Player], - inner_shapes: Sequence[Shape2D], - key_set: KeySetType, - /, - ) -> tuple[StateOfAllRooms, AliasMappingType]: - """ - Takes three players in solo rooms, - 2D shapes of statues there in order from left to right, - and the current key set. - Returns initial state of solo rooms a mapping of positions to player aliases. - """ - assert len(players) == len(inner_shapes) == 3, f'number of players and shapes must be 3' - inner2person = { - i: p - for i in inner_shapes - for p in players - if p.their_shape == i - } - aliases = dict(zip(ALL_POSITIONS, (inner2person[i].alias for i in inner_shapes))) - other = tuple(inner2person[i].other_shape for i in inner_shapes) - state = init_rooms( - left_inner_shape=inner_shapes[0], - left_other_shape=other[0], - middle_inner_shape=inner_shapes[1], - middle_other_shape=other[1], - right_inner_shape=inner_shapes[2], - right_other_shape=other[2], - key_set=key_set, - ) - - return state, aliases - - -__all__ = 'PassMove', 'StateOfAllRooms', 'init_rooms', 'init_rooms_from_players' +__all__ = 'PassMove', 'StateOfAllRooms', 'init_rooms'