The game is pretty simple. It plays more of less like Stratego, except when you challenge your opponent's piece with your piece, you place them both on the electronic "battlefield" and it tells you who wins based on the pattern of bumps on the bottom. The loser doesn't get to see what the piece was that beat him, so it maintains the secrecy.
When one of the pieces is the "Flag" and the other piece is something that can capture the flag, it plays a song to indicate that the game is over. So it has to have more than just logic.