bool isRoomApplicable(RoomDoor roomDoor, Room newRoom) { if (actualState.RoomCount() + actualState.OpenDoorCount() + newRoom.doors.Count - 1 > roomLimit) { return(false); } return(true); }