Wordle

Wordnull is available on the right. Please donate if you have money, as I'm a very small developer and would really appreciate it.

If I recieve $50 total in donations, I will remove the ads from a random ad-supported download.

Below is a code snippet for a CAPTCHA I developed in Python.

If you use this, please either credit me or pay ≥$5 in the donate area.

from keyboard import is_pressed as ispres
from random import randint
from os import system
from os import name as osname
from time import sleep


lock = [i if randint(1, 5) < 5 else "-" for i in "======================"]
lockcursor = ' ' * 22
lockcursor = [i for i in lockcursor]	
lockcursor[0] = '^'
lockcursor = ''.join(lockcursor)


clearConsole = lambda: system('cls' if osname in ('nt','dos') else 'clear')

while True:
	print(''.join(lock))
	print(lockcursor)
	sleep(0.1)
	lockcpos = lockcursor.find("^")
	if ispres('left'):
		lockcpos -= 1
		sleep(0.1)
	if ispres('right'):
		lockcpos += 1
		sleep(0.1)
	if ispres('space'):
		if lock[lockcpos] == '=':
			lock[lockcpos] = '-'
		elif lock[lockcpos] == '-':
			lock[lockcpos] = '='
		sleep(0.1)
	lockcursor = ' ' * 22
	lockcursor = [i for i in lockcursor]	
	lockcursor[max(min(lockcpos,len(lock)-1),0)] = '^'
	lockcursor = ''.join(lockcursor)
	clearConsole()
	if not '-' in lock:
		break

For the Code snippet on the left, do

pip install keyboard

first. It requires sudo.