Skip to main content

A program that makes you unbeatable at BombParty

Project description

Tictacbot

A program that makes you unbeatable at BombParty (in french).

Demo

Installation

⚠️ This program requires a version of python >= 3 installed on your machine.

Install the pytictacbot module using pip (it is included with python):

pip install pytictacbot

Usage

Note: this program will only work on MacOS since it uses "Command + V" keys to paste. You can edit the code yourself if you want to adapt it to your environment.

In order for this program to work, you must allow "Accessibility" settings to the application that will run the script. Indeed, you need access to the input monitoring to listen to the keys you type.

On Mac:

  • Open System settings,
  • Navigate into the Privacy & Security section,
  • Click on Accessibility,
  • Allow the application(s) in which you will run the script (ex: iTerm, Visual Studio Code...),
  • Go back, then do the same thing for Input Monitoring.

Once this is done, it is ready to use !

In your terminal, run:

tictacbot

An interface will be displayed. It will listen to the keys you type. A history of these keys will be displayed in the interface.

  • To launch the search, press the space bar.
  • To cancel the keys you typed, press the escape key.

After a successful search, the found word will be automatically pasted. The "remaining letters" list will be updated accordingly.

Rules

Before understanding how does it work, let's remember the rules of the bomb party :

  • The player will be given a series of letters. He will then have to find (as quickly as possible) a word that contains this series of letters (ex: "iso" -> "maison")
  • The player starts with a list of all the letters in the alphabet, except "k", "w", "x", "y" and "z". If, with the words he/she types during the game, the player manages to use all these letters at least once, then the player will gain an extra life.

Finally, the goal in each round would be to find a word containing the sequence of letters, but also the one that will unlock the most letters at once!

How does it work ?

Once the script is launched, it will run in the background, listening to the keys that are typed on the keyboard.

It will display everything on the interface to make it easier for the user to understand what is happening in the background.

When the user will press escape to search the best word including the sequence of letters he/she typed, the Tictacbot will crawl a file containing all the words of the French language.

It will first determine a list of all words containing the given sequence of letters. Then, it will crawl this list and, for each word, calculate a score using the letters to discover (cf. 2nd rule). It will finally return the word with the highest possible score.

Finally, it will erase the sequence of letters that has ben typed by the user and paste the word instead.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytictacbot-1.5.tar.gz (850.4 kB view details)

Uploaded Source

File details

Details for the file pytictacbot-1.5.tar.gz.

File metadata

  • Download URL: pytictacbot-1.5.tar.gz
  • Upload date:
  • Size: 850.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for pytictacbot-1.5.tar.gz
Algorithm Hash digest
SHA256 89aff79273a2eb46f12a434c859700d428209259a77291329e0421e64852a85d
MD5 60cf66fdc45153144d0513a491eee08e
BLAKE2b-256 d3a153f2b426be2d6794c49d7d473e656ad6af3f00cad2f5edaf76856ae31fed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page