tspivey / yugioh-game

Text-based Yu-Gi-Oh MUD
https://allinaccess.com/game/
MIT License
33 stars 23 forks source link

add a deck register system for tournaments #240

Open sanslash332 opened 4 years ago

sanslash332 commented 4 years ago

As we talked at the afternoon, try to add a simple system to allow the users mark one of their decks as a tournament deck and saving or puting some mark or sign check, when these deck was registered; so with that the organizers of the tournament can have security that the deck is the same during all the time of the tournament.

Next to that, allow mark a duel as a tournament duel/match, to force the players use their tournament registered deck.

Timtam commented 4 years ago

this idea is not fully fledged out yet. We'd need more information. How to distinguish between tournament and non-tournament related duels? If a tournament runs for more than a day, it would not be fair to prevent people from duelling in-between the regular tournament duels.

sanslash332 commented 4 years ago

Hello @Timtam thanks for the repply.

I was thinking this, and really the thing what we need for have a system to check decks, is a signing / hashing method.

Example, Some people want to create a tournament and create a registration form in some docs program.

The player, have to fill the form, and one of the fields is deck signature.

the player, in the game, can get the signature of any of their decks, with a command like this.

deck sign deckname

That signature maybe can be a one-way hash of the export link of that deck (like SHA1 or similar), that is verifiable, but non decryptable.

So, plus that sign command, you can add in any preparing duel room, another command that give to you the sign of the deck loaded by any player.

So, if you are a judge of the tournament, before the duel starts, you get the sign of the decks, checks with your form entry if the signatures of the decks of bot players are OK, and you can start the duel. if the signatures doesn't match, any of the players is trying to use a different deck than the he registered on your tournament.

Isn't hard to implement, and you don't have to have specialized duel rooms for tournaments.

And, the option of get signatures of the playing decks, can be an optional option in the room settings, if a player dont want to show the signature of their playing deck in any regular duel.

That is the idea taht I was thinking.