Session Idea: History game logic… specifically based on primary source documents

Learning about history doesn’t necessarily need a game to make it interesting. But if you were to think about an electronic game for middle or high school students that is based on primary source documents, can we identify an underlying logic that could apply to primary sources in general?

Disclosure: I’m not a gamer! So when I say underlying logic I’m thinking about the structure or objective of the game: uncover clues to get to a destination; problem solve in order to achieve a new level; research or add data in order to change an outcome; all the other things I have no idea about. I’m looking for the broad experience of a group to play with this idea.