Anti bot idea for DW

in drugwars •  6 years ago  (edited)

FRENCH SEE BELOW / FRANÇAIS VOIR PLUS BAS

This is a proposal to help DW with its anti bot rule.

Bots scanning the blockchain are not illegal, as the blockchain is public. What is not allowed in game industry is to automate game sessions to take unfair advantage on true gamers.

So, what should be done in the game should be signed to be validated.

Here is a little trick simple to use :

Add a field in the json, allowing your sever to verify it's published by the game and not a bot.
An easy way to do so, is to use an XOR encryption, for example

Take the tx idea of the action ( attack, upgrade, soldiers hiring, etc)
Create in your db something like a timestamp on when the action was performed or some random secret word
Perform an XOR between those two and add the result in the json as signature.

Xor is well known as it uses the same command to find the original text :)

Then your server only needs to XOR the json added field to verify it was made by the game and not from a bot.

Hope it helped, it's only an idea.

Legit players are always welcomed to join the FRENCHIES
frenchiesdrawn2.png
Not yet in the game ? Join DrugWars now


Ceci est une idée pour aider DW dans sa lutte anti bot

Utiliser un bot pour scanner la blockchain est légitime, après tout, le contenu de la blockchain est public. Ce qui n'est pas toléré dans le monde du jeu, c'est d'automatiser sa session de jeu pour prendre un avantage sur les joueurs.

Donc, ce qui doit être réalisé par le jeu, doit être signé par le jeu.

Voici un petit truc, facile à implémenter pour signer une transaction:

Ajouter un champs dans le json, permettant au serveur de vérifier que le json fut créé par le jeu et non par un bot.

XOR le permet très facilement, par exemple comme ceci:
Prenez le numéro de transaction ( attaque, recrutement, upgrade, ou peu importe)
Créez un mot secret ou une empreinte de temps dans votre DB à la création de la requête
Faites un XOR entre ces deux valeurs et placez là dans le nouveau champ du json.

Xor est très connu car il suffit de refaire la même commande pour retrouver le texte original en clair.
Ensuite votre serveur pourra aisément vérifier par le XOR si l'action vient du jeu ou d'un bot et donc de le valider ou rejeter.

C'est bien entendu juste une idée, en espérant avoir été utile :)

Les vrais joueurs sont les bienvenus dans FRENCHIES
frenchiesdrawn2.png

Vous n'êtes pas encore dans le jeu ? Rejoignez-nous


A bientôt,
@itharagaian

Helping my projects / Tipping :-)

Currently supporting those projects:

https://busy.org/@cercle
https://busy.org/@cleanplanet

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

I'm not sure what all this means. I'm not much of a programmer nowadays. Used to Dabble in Visual Basic back in the 80s and I learned HTML and XML. Haven't programmed in years. Wouldn't a simple captcha do the trick?

Captcha is a pain for the players, while XOR is invisible and takes almost no time, it will not impact players

Oh. Nice. That makes sense

Seems like a decent idea. I guess it makes the game much more playable.

But as it is right now there is nothing you can do if you don't use bots yourself.

I do battles every day, I use the find target and fight what seem abandonned accounts, it pays off more often than one can think :)

Thank you for your interest in Drugwars. This post is dope and we wanted to show our gratitude for your involvement with an upvote. Hope that you’ll keep enjoying the game and we have much more surprises for the Drugwars players. Don’t hesitate to report bugs, give suggestions and feedbacks.
See you on Drugwars as a friend or an enemy…

Thank you

!bookkeeping drugwars

Hi @itharagaian.net!

drugwars

Received:

  • 15.412 STEEM from daily
  • 4.411 STEEM from heist
  • 2.953 STEEM from referral

Spent:

  • 52.900 STEEM

Total:

  • -30.124 STEEM

First transfer was before 22.00 days.
Your ROI per day is 1.96 % and you are earning approx. 1.04 STEEM per day.
Break even in approx. 29.1 days.

!bookkeeping drugwars

Hi @emrebeyler!

drugwars

Received:

  • 127.392 STEEM from daily
  • 104.171 STEEM from heist
  • 16.382 STEEM from referral

Spent:

  • 294.938 STEEM

Total:

  • -46.993 STEEM

First transfer was before 24.11 days.
Your ROI per day is 3.49 % and you are earning approx. 10.29 STEEM per day.
Break even in approx. 4.6 days.

!bookkeeping drugwars

Hi @alexs1320!

drugwars

Received:

  • 0.076 STEEM from daily
  • 0.002 STEEM from heist
  • 0.000 STEEM from referral

Spent:

  • 0.000 STEEM

Total:

  • 0.078 STEEM

First transfer was before 10.52 days.