Is there a smart contract for PVP (gaming/predictions) with oracle for decision?

Basically looking for a smart contract where user1/wallet1 and user2/wallet2 deposit tokens into a smart contract and then an external oracle decides the result and then the winning wallet can withdraw the tokens deposited by both parties.

Something like this must already exist… This can be used for predictions market or PVP games.

There must be a project that has already done that/an existing framework - smart contract. Could anybody send me in the right direction? Thanks in advance!

I haven’t seen a contract like this before, but you should try writing it, it sounds quite simple.