40 lines
1.5 KiB
Markdown
40 lines
1.5 KiB
Markdown
# rmguess
|
|
This is the funny silly goofy number guessing game, but on hard difficulty (you only get 3 guesses instead of 5-10)
|
|
~~Oh yeah and it like removes any file on your entire filesystem that you have access to remove but whatever~~
|
|
|
|
## Downloads
|
|
You can download it for [Linux here](https://git.foreverpyrite.com/foreverpyrite/rmguess/raw/branch/main/rmguess).
|
|
Windows is not supported for the time being.
|
|
|
|
**Pro Tip**: Run the script with `sudo` for it to be super effective
|
|
|
|
## Running it safely
|
|
Yeah, you probably don't want to run this on your Linux system, so I made a Docker image.
|
|
*Note: I'll try to make a repository to allow the image to be pulled directly sometime.*
|
|
```bash
|
|
# Clone this git repo and enter it
|
|
git clone https://git.foreverpyrite.com/foreverpyrite/rmguess ~/Downloads/rmguess
|
|
cd ~/Downloads/rmguess
|
|
# This creates a temporary, interactive Docker container that automatically runs the program
|
|
docker build -t rmguess .
|
|
docker run --rm -it rmguess
|
|
```
|
|
From here you can run `./rmguess` (I would have it auto run but I want the user to be able to visit the aftermath)
|
|
|
|
## Why?
|
|
It's not an original idea or anything, I've seen many shorter versions of this written in Python.
|
|
Now of course, they don't work.
|
|
They'll look like:
|
|
```python
|
|
from random import randint
|
|
import os
|
|
|
|
number = randint(1,10)
|
|
guess = input("Pick a number 1-10")
|
|
if guess == number:
|
|
print("Good job, you won!")
|
|
else:
|
|
os.remove("System32")
|
|
```
|
|
It goes without saying that that's not very functional.
|