diff --git a/guess.desktop b/guess.desktop new file mode 100644 index 0000000..49e3d6d --- /dev/null +++ b/guess.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Name=get et tal +Exec=/home/ho/src/guess/main.py +StartupNotify=true +Icon=/home/ho/src/guess/icon.png +Terminal=true diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..557258a Binary files /dev/null and b/icon.png differ diff --git a/main.py b/main.py old mode 100644 new mode 100755 index f961822..d8a71ad --- a/main.py +++ b/main.py @@ -1,12 +1,12 @@ +#!/usr/bin/env python3 import random - while True: random.seed() - tal = random.randint(1, 100) + tal = random.randint(1, 500) brute_get = 0 while True: - y = input("get et tal mellem 1 og 100: ") + y = input("get et tal mellem 1 og 500: ") x = int(y) brute_get += 1