Sure! Here's an example of a murder mystery game written in a single HTML file with JavaScript. The game requires user interaction to ask suspects questions and find clues to solve the murder.
Please note that this is a simplified version and can be expanded upon further.
Murder Mystery Game
In this game, you are prompted to choose a suspect (Alice, Bob, Charlie, or David). Based on your selection, the game will present the chosen suspect's alibi and display the available clues related to the murder case.
You can expand this game by adding more suspects, more complex clues, adding gameplay elements such as questioning witnesses, and implementing a system to track progress and identify the real murderer.
Remember, this is just a basic example to get you started. Feel free to modify and enhance it according to your game design preferences.