Danganronpa: Trigger Happy Havoc is a 2010 game created by Spike Chunsoft. In this game, 15 students get locked in the school, and they have to resort to killing to escape.
When a murder happens, the class
will investigate the crime scene and eventually have a "Class Trial", which ends with voting.
If they correctly identify the murderer, the murderer
will be executed. But if they misidentify the murderer, everyone except the murderer
will be executed, and the murderer
will graduate.