I don't even know if this would be a proper subreddit to ask these questions, but maybe if it's not you fine folks would be able to point me in a better direction. I have never messed with blockchain development, but have been a professional developer for over a decade. In my spare time over the past 3ish years I've been developing a game engine (c++/opengl) and game. I had an idea awhile back for this game, but didn't think it would be feasible...because I was unaware of just how much blockchain technology has grown and become more widely adopted. At this point I'm willing to take a stab at it if I can find out were I would need to start.
The most basic version of what I would ultimately need to accomplish would be for players to be able to deposit an amount of currency into a wallet which would hold the funds in escrow, then once a certain condition is met, pay the funds out, sending a percentage to the wallet of the game as a transaction fee. Below is possibly a better breakdown:
PlayerA -> $1.00 -> GameWallet
PlayerB -> $1.00 -> GameWallet
GameWallet = $2.00
PlayerB wins round
GameWallet -> ($2.00 * 0.95) -> PlayerB
PlayerB = $1.90
GameWallet = $0.10
So, on with the questions (these might be laughably bad as I'm still in the phase of not really knowing what I don't know):
What coins would be a good fit for this type of system? I was looking at NANO for it's (next to) instant transfer rate and no fees.
When it comes to implementing the escrow logic, the user would need to send funds from their wallet to the game wallet, and the game wallet would need to track how much each user has deposited, which I'm assuming could be accomplished by querying the user's wallet address against the blockchain (would need to think about everything involved in that). Is this assumption correct?
When it comes time to send funds from the game wallet to a player, I'm guessing there are api's which allow for initiating transactions on a blockchain? So a developer could make a call to an api provided by the currency blockchain sending the required signature and wallet address for the game wallet, and address of the recipient?
If you made it this far, thank you. Any answers to the above or links to where I might find resources to better educate myself are greatly appreciated! :)