Bitcoin Forum
May 04, 2024, 10:49:28 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Project Development / Re: peer-to-peer poker site? on: August 09, 2021, 02:39:15 PM
If one of the players is the dealer and deals the cards there is a problem because then the dealer knows the cards of the other players. Because the dealer is also participating in the game. It could be encrypted in some clever multi-party way so that the dealer doesn't know the cards, but then it could also be encrypted in the same way in a client-server scenario, so having a player be the dealer doesn't really achieve anything. There is a good explanation in this video:

https://www.youtube.com/watch?v=mthPiiCS24A

In this scenario all the cards are encrypted with the keys from all the players, so it is only when all players agree that a card can be relieved. This would work in theory, but only as long as the players are fair enough to provide the encryption keys when a card is to be dealt. A player can easily sabotage the game if he has bad cards and doesn't want to play them.

Another possibility would be if the game is actually happening as a smart contract on a blockchain, and the card dealing happens as transactions. This wouldn't really be possible either, because smart contracts are executing far too slow for that.

This is as far as I have gotten in my thinking. I'm sure there is a solution, but I haven't figured it out yet.



In a "heads up" situation it's not an issue because failing to unlock would be considered a fold and the opponent would get the pot. If there are more than 2 players, it can still result in a fold, and then the only advantage in doing that would be that the next hand would start right away thus saving him time.  So you can write the app so that doing this would result in a penalty, say, having to sit out x number of hands before he can play again, and also a loss of "karma" and the behavior can even be spelled out in the bio for all to see, thus making it less desirable for people to want to play with him.

A perhaps worse issue would be if a player suddenly loses connection before unlocking.
2  Bitcoin / Project Development / Re: peer-to-peer poker site? on: August 04, 2021, 02:46:19 AM
since there is no server and therefore no dealer, I can see how this can be an issue. But how about this: just like in a home game, the players take turns dealing  - the player who has the button is the dealer - and then why not have a "dealer bot" hard coded in the app, and the dealer bot deals out cards to everyone at the table when its their turn to deal. all the data of the game gets distributed to all the players, except that the data that they're not supposed to see gets encoded for the players who are not supposed to see it, and decoded for the players who are supposed to see it. would that work?
3  Bitcoin / Project Development / peer-to-peer poker site? on: August 03, 2021, 12:03:27 AM
Hi is it possible to use blockchain technology to build a peer-to-peer poker site where players buy the chips using crypto? Normally you have a server that keeps track of the cards, the stacks, the actions, etc. But to have each move work like a transaction would be too slow as the game requires instant results. Perhaps there is a different way this can be achieved?
4  Bitcoin / Mining / mining vs selling to the grid on: July 30, 2021, 03:52:01 PM
This is a thought experiment and please feel free to correct me if my presumptions are wrong

Assuming an entity or a company decides create a sustainable mining operation. So he sets up wind farms, solar, water wheels etc to generate the electricity. But now that he has all that electricity, why not just sell it to the grid? I know that those that have solar panels can do that if the panels generated more electricity than the owner used.

So let's say that mining is more profitable than selling to the grid.

OK, then what stops the big utilities from using their electricity to mine as opposed to selling it to the consumer? The regulator authorities?

Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!