Ikon tilføjet
This commit is contained in:
parent
dce41cf8c7
commit
c5c7cf2160
3 changed files with 10 additions and 3 deletions
7
guess.desktop
Normal file
7
guess.desktop
Normal file
|
@ -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
|
BIN
icon.png
Normal file
BIN
icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.2 KiB |
6
main.py
Normal file → Executable file
6
main.py
Normal file → Executable file
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue