Coder Social home page Coder Social logo

donttapbot's Introduction

Bot for DontTap

Sommaire / Table of Contents

Description

This project is a bot that automates the game WhiteTile2 (available on donttap.com) by automatically clicking on the black squares on the screen.

How It Works

The bot utilizes the following Python libraries:

  • win32api to move and click the mouse.
  • PIL to capture screenshots.
  • pynput to detect mouse clicks by the user.

The bot operates as follows:

  1. Waits for the user to click the button to start the game.
  2. Detects the location of the black squares on the screen.
  3. Automatically clicks on the black squares.

Configuration

  • SCREEN_X and SCREEN_Y are the coordinates of the screen where the grid is located.
  • CELL_SIZE is the size of each square.
  • DELAY_BETWEEN_READS is the delay between screen readings to detect the start of the game.

How to Use

  1. Ensure that Python is installed on your system.
  2. Install the dependencies by running:
    • pip install pywin32
    • pip install Pillow
    • pip install pynput
  3. Clone this repository.
  4. Run dot_tap_bot.py to start the bot.
  5. Begin a game by clicking a start button to initiate the game.

Disclaimer

This bot was created for educational and demonstration purposes. The use of automated bots in games may violate the game's terms of use. Use this bot at your own risk.

Author

Ava Info Conseils - LinkedIn

License

This project is licensed under the MIT License - see the LICENSE file for more details.


Description

Ce projet est un bot qui automatise le jeu WhiteTile2 (disponible sur donttap.com) en cliquant automatiquement sur les carrés noirs à l'écran.

Comment ça fonctionne

Le bot utilise les bibliothèques Python suivantes :

  • win32api pour déplacer et cliquer la souris.
  • PIL pour capturer des captures d'écran.
  • pynput pour détecter les clics de souris de l'utilisateur.

Le bot fonctionne de la manière suivante :

  1. Attend que l'utilisateur clique sur le bouton pour lancer la partie.
  2. Détecte l'emplacement des carrés noirs sur l'écran.
  3. Clique automatiquement sur les carrés noirs.

Configuration

  • SCREEN_X et SCREEN_Y sont les coordonnées de l'écran où se trouve la grille sur l'écran.
  • CELL_SIZE est la taille de chaque carré.
  • DELAY_BETWEEN_READS est le délai entre les lectures de l'écran pour détecter le début du jeu.

Comment l'utiliser

  1. Assurez-vous que Python est installé sur votre système.
  2. Installez les dépendances en exécutant :
    • pip install pywin32
    • pip install Pillow
    • pip install pynput
  3. Clonez ce répertoire.
  4. Exécutez dot_tap_bot.py pour lancer le bot.
  5. Commencez une partie en cliquant sur un bouton pour démarrer la partie.

Avertissement

Ce bot a été créé à des fins éducatives et de démonstration. L'utilisation de bots automatisés dans des jeux peut violer les conditions d'utilisation du jeu. Utilisez ce bot à vos propres risques.

Auteur

Ava Info Conseils - LinkedIn

Licence

Ce projet est sous licence MIT - voir le fichier LICENSE pour plus de détails.

donttapbot's People

Watchers

Antonin Do Souto avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.