J I
@JeremyIrwin
is there (or can I make) an autoc clicker that automatically clicks the mouse even when I leave the tab?
TheDNAHero Just have a setInterval the starts once you buy something. It will run until you close the tab. You can make use of localStorage to save dates and stuff to in theory do that, and to continue to use the autoclicker. It wouldn't be too hard.1 year ago
it's saying
File "main.py", line 93
global magicmarp_pool
^
SyntaxError: name 'magicmarp_pool' is parameter and global
Python
Coder100 You are using a variable that is already a parameter! Look at the line 92:
def init(self, chance, level, fighting, magicmarp_pool):
so please rename the variable on line 93 and 94, or just remove the argument on line 92 entirely.
Also, on lines 95 to 97 you indented when you should have unindented2 years ago
Geocube101 Variables cannot be both global and a function parameter (which is local)
If you would like it to be global then remove the function parameter, though if you need it to be a function parameter (local) then remove the global declaration on line 932 years ago
Line 101 in main.py
I want to call a move in moves.py and I don't know how to do that
thanks!
Python
SixBeeps You'll have to import the file along with any of its functions. Like this:
from moves import * # Imports everything from moves.py
Me when it is a Wednesday
while(True):
puke_fire()
`2 years ago
near the end, it says fighting isn't defined (even though it is in a previous function), how do I link the two together?
and is there something else t
Python
Coder100 Use global to define variables outside of their function, like this:
def fun():
global fighting
fighting = True
print(fighting) # no error!
`2 years ago
How do you do the thing (like in a hacker typer)where hen you type something it automatically inputs without needing to press enter?
CodeLongAndPros In python:
from getch import getch, getche()
print(getch())
Note that getch() does not echo to the screen, while getche() does.3 years ago
Ganesha1 it's like plague inc, I like this.
> make it so console is cleared every time the loop restarts3 years ago
So, the program has a cycle threshold greater than 15, but how does that actually affect the program?
Python
CodeLongAndPros It means there are more than 15 possible routes through the program.
If you are making a big project, ignore it.
If you have a small project (< 100 lines of code), it means you need to refactor.3 years ago
it says cycle threshold reached, I know what that means, but I don't really know how to fix it in this case
Python
helloyanis It doesnt work, here is why :
Instead of year=input()
Use this :
year=int(input())3 years ago
Can someone help with my quest to make ~ath an actual programming language? (from homestuck) https://www.homestuck.com/story/2002
Take this quiz to find out what wig type is right for you, idunno
Python
I want to create a language like python but mainly with different keywords, and how do I do that?
Geocube101 I may be able to help with this as I created a transpiler like program to convert a custom language into python (which you can find here).
If you have a repl (and are fine opening it up to multiplayer) then I could run you though the steps of how I made mine to help you make yours
*`3 years ago
JeremyIrwin it's called python typo, where all keywords are typo (instead of print it's pront)3 years ago
A cookbook in python. It only currently has 3 recipes though. I tried to add a 'random recipe' feature but it didn't work. If you want to add a recipe
Python
You ask for a type of food sensation, and then it gives you the opposite of that.
sweet-->sour, salty, bitter, savory
sour-->sweet
salty-->sweet
bitt
Python
inspired by the life changing program by @MrEconomical , my life was changed, I was a new person! so I decided to improve their program so other lives
Python