Implement a function guess_number_in_games that utilizes the provided game format to deduce the number 'a' based on responses from Petya. The function will handle multiple games and output a list of guessed numbers for each game.
Functionality Requirements:
The function should take two parameters:
game_starts: A list of strings, where each string "start" indicates the commencement of a new game.
answers: A list of lists, where each inner list contains responses ('y' or 'n') from Petya for the corresponding game.
The function should output a list of guessed integers, where each integer represents the deduced number for each game based on the provided answers.
Input/Output Requirements:
Input:
game_starts: A list of strings (e.g., ["start", "start"]).
answers: A list of lists of strings (e.g., [['y', 'n'], ['n', 'y']]).
Output:
A list of integers (e.g., [1, 2]).
Implementation Instructions:
Write the provided function within a Python file located at /app/solution.py.
Example:
python
# Inputs
game_starts = ["start", "start"]
answers = [['y', 'n'], ['n', 'y']]
# Output
result = guess_number_in_games(game_starts, answers)
print(result) # Expected output: [1, 2] (or similar based on logic)
Ensure your implementation handles edge cases and works efficiently across a variety of inputs as specified.