Skip to main content

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()

Metadata

Release files for xslots 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for xslots 0.0.1
File Interpreter ABI Platform
xslots-0.0.1-py3-none-any.whl Python 3 none any Details

Release files / xslots-0.0.1-py3-none-any.whl

Download URL xslots-0.0.1-py3-none-any.whl
Size 1.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41448118d6137eb4d6256e9f7da54a5fefa94771ff579e08a1a68707c2d8cad1
BLAKE2b-256 checksum
How to use checksums
bccbccdd99f04932906c3f3711c95102dfcbf037e994d517db4bf7ab65089532
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page