Real time crypto game security


How would you guys go about securing a real time game, let's say Mario Bros, and when the player gets to the end, he mints a token per coin collected in-game. How do you secure that if 10 coins were collected, the mint function only mints 10 tokens?

Any ideas, thanks!!!

I think it's the logic in the front end.

Aren't games that run on local computers easily hackable?

There is a gap between in-game data, 10 coins in your example, and 10 tokens on blockchain. You may want to pass the in-game data through an oracle onto smart contracts. An oracle of this kind may not be publicly available on a commercial level. However, private oracles can be built.