Skip to main content

Generate Slot Counter

Project description

xslots

Example usage: Crack an n-digit code

from datetime import timedelta
import time

from xslots import Slots

slots = Slots(4, 0, 9, 0)
password = "939614"

start = time.time()
while True:
    print(slots)
    s = "".join(str(slots)))
    
    if s == password:
        end = time.time()
        print(f"Hacked code {s} in {timedelta(seconds = end - start)}")
        break
    
    slots.increase()

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

xslots-0.0.1-py3-none-any.whl (1.6 kB view hashes)

Uploaded Python 3

Supported by

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