Nobody Nobody
Hacker
@littlepenguin
Sus
1
Math Test
This is a simple math test I created for fun. You get to select your level (easy, medium, hard), and the problem (addition, subtraction, multiplication, and division). This is a survival game, and you try to answer as many questions as possible without getting anything wrong. I worked on this a couple of days, and I hope you enjoy it.
I am thinking of adding a leaderboard if people try this game.10
1
1
1
10
1
1
littlepenguin This is a simple math test I created for fun. You get to select your level (easy, medium, hard), and the problem (addition, subtraction, multiplication, and division). This is a survival game, and you try to answer as many questions as possible without getting anything wrong. I worked on this a couple of days, and I hope you enjoy it.
I am thinking of adding a leaderboard if people try this game.8 months ago
0
Info-Blook
Finds information about a certain blook in blooket.
https://www.blooket.com0
Import Error with Getch
Hi, I am getting an error importing getch:
from getch import getch
But, it gives me this error:
ImportError: /opt/virtualenvs/python3/lib/python3.8/site-packages/getch.cpython-38-x8664-linux-gnu.so: undefined symbol: PyInitModule
Any idea how to solve this?
Thanks!
12
1
0
I'm using python-chess but it gives me an error when I try to open the stockfish exe.
Can someone help?
Python
19wintersp That's a Windows executable, you cannot run those on Replit*. Can you find a download for "Linux" or "Ubuntu", or a file which ends in "deb", "elf" or has no file extension?2 years ago
I'm getting this error with tkinter that I am not quite understanding. Can someone explain what is happening and what can I do to fix this?
Thanks
Python
maxina On line 41, you have the random word "for" in the middle of nowhere, just remove that, here would be the working code:
from tkinter import *
from random import *
root = Tk()
root.geometry("500x500")
root.title("Math Tester")
eq = ["", "%", "-", "+", "/", "*"]
def Take_input(e, q1, q2):
answer = int(eval(str(q1) + e + str(q2)))
INPUT = int(inputtxt.get("1.0", "end-1c"))
if(INPUT == answer):
Output.insert(END, 'Correct')
else:
Output.insert(END, "Wrong answer")
def main():
P2 years ago
Hello everyone, I made a tic tac toe, and as it is almost Christmas, I made it Christmas Style.
Upvote if you liked it!
Python
Is there a way to clear the screen in Java?
Thanks
RYANTADIPARTHI Solution
different ways are
public class ClearScreenExample1
{
public static void main(String[] args)
{
System.out.print("\033[H\033[2J");
System.out.flush();
}
}
another way
public static void clearScreen() {
System.out.print("\033[H\033[2J");
System.out.flush();
}
That should work2 years ago
I'm checking for the win in the 'check_winner' function.
It's supposed to check for wins and print them, but it doesn't.
Can someone help? Thanks.
Python
RYANTADIPARTHI I don't think you have to name certain arrays for everything. like toparray middlearray and all. another thing is, whoever has it, you need to check the player while in the process.2 years ago
Is there a way to import a javascript file from a python file?
Thanks.
Is there a way to put an image into the console? Thanks. Language:
Python
CodeLongAndPros Yes you can.
Place this into image.py:
from PIL import Image
ASCII_CHARS = ['.',',',':',';','+','*','?','%','S','#','@']
ASCIICHARS = ASCIICHARS[::-1]
'''
method resize():
takes as parameters the image, and the final width
resizes the image into the final width while maintaining aspect ratio
'''
def resize(image, new_width=100):
(oldwidth, oldheight) = image.size
aspectratio = float(oldheight)/float(old_width)
newheight = int(aspectratio * new_width)
newdim = (newwidth,2 years ago
Highwayman You can’t put it in the console, but repl.it supports plenty of graphics libraries that can display the image like PyGame.2 years ago
This program tells you how many letters of the word accoured.
Upvote if you liked it!
Python
Can you break an if statement?
thanks
RYANTADIPARTHI you cannot break out of if stataments. Only loops allow you to break. Since they run forever, until something is satisfied. The if statements don't need anything. They get satisfied easily. Just remember only loops can use break and continue. If statements cannot.2 years ago
CSharpIsGud Well, not break per se. but you can do this with the goto-statement module
#Python 2.7.17
from goto import with_goto
@with_goto
def main():
if True:
print("One.")
goto .after
print("Two!")
label .after
print("Hello, world!")
main()
But please for god sake do not. You can do it more readable and easier by just not doing this2 years ago
Is there a way to get all of the repl user's username?
I'm working on a repl.it user search so I would like to get all the usernames. Is this possible
Python
EpicGamer007 You can try using graphql with nodejs... there is no other way
https://repl.it/talk/learn/How-to-Use-Repl-Talk-APIGraphQL-NODEJS/79299
^ That is the tutorial but it is nodejs,2 years ago
How do you keep a Discord Bot Token a secret?
Thanks
Lang(Python)
PattanAhmed @CT2224 Hi,
Yeah, I know.
The main part of making a Discord bot is storing the tokens.
The Repl.it also has the ability to keep your tokens safe and secure only when you create a file called .env and save the data there.
No one can access it even when they Fork or Download the Repl.
Read this docs for more info:- https://docs.repl.it/repls/secret-keys
That's it
Thanks!
Hope this helps!2 years ago
This is a simple math quiz. Pick your level min and max and start playing. Upvote if you liked it!
Python
I am making a flask app, and I can't access the app. It just says
127.0.0.1 refused to connect. Can someone help?
Python
RYANTADIPARTHI refresh
You might want to try refreshing, or making a new repl. If all fails, report to bugs. click here2 years ago
InvisibleOne Doesn't that usually happen if there is no client trying to connect to a server?2 years ago
This is just a simple calculator.
Add the operations and the numbers.
All feedback is appreciated.
Upvote if you like it!
Python
This is a snake game made with curses.
Note: This might take a few reruns
If you hit yourself, you die.
Collect all the fruits to get more points.
If
Python