HappyLunchBox
@HappyLunchBox
Hello!
0
Eureka! A Math GameA interactive math game
17
0
0
Have you ever wanted to learn math in a fun way?
Do you want to play RPG and still learn math?
Try Eureka! A math game.
In this game, you can fight m
Python
Welcome to Eureka! A Math Game. This is an arena text based math game.
In this game, you can:
Battle Monsters
Gain Coins
Buy weapons and armor in the
Python
This error came when I tried to has. Reentering the username and password always returns not a valid account even though it should be valid. Please an
Squirrel777 Your code does not save the username and password, to do so use a database to save the user's username and password!2 years ago
RYANTADIPARTHI it's because i don't think your code actually saves the passwords, and account. Try using repl db.2 years ago
In a Brute Force Password Hacker I'm making, I want to let the machine try two letters AFTER one letter words. How would I do this? btw I don't want t
robowolf What I did when I made one of these, I made a while loop with a system to detect when one letter words were done. You can either try
if len(guessed) == len(chars)number:#number would make sure that it updates itself dependent on chars already guessed
number+=1 # make number directly affect the amount of chars guessed
or you can look at this for some help2 years ago
I accidently did a logout thingy on the other ask, didn't know what it would do so now I want to ask a question: How to edit your post after you submi
HappyLunchBox @moderation someonde delete this post: https://repl.it/talk/ask/Editing-Posts/1147202 years ago
RYANTADIPARTHI @HappyLunchBox then there is no other way to do it. if you have a logout image.2 years ago
This may sound silly, but how do you edit a post you made?
int health;
int damage;
double crit_chance;
int power_up;
public Wizard(int health, int damage, double critchance, int powerup){
this.h
My Python tutorial :)
What you are going to learn today
comments and printing
variables
and anything I can fit into this tutorial
You should try this
I have a question, i'm using aguy11's tutorial of making a coding language. Do an of you guys know how to make functions in a coding language made in
Here are some definitions I made yesterday (before watching christmas movies and all that). You can use some for inspiration. The prime number checker
Java
So yeah, I started with python, and I just started my java classes today. Here is a little project I made.
It's just a basic guess the number game.
Java
phantomlord45 its doesn't make any sense and I still don't know the number and add like go lower or higher2 years ago
AustinCharb come check out my repl! please upvote
https://repl.it/talk/share/Christmas-Countdown-in-Python3/1113372 years ago
I was bored, so I made a clicker game with python (I don't know much about HTML right now) This is version 1. Enjoy!
Rules:
Press ENTER to earn money
Python
Do any of you guys know how to do multiplayer in python? I'm trying to make a Mr Beast thingy that Coder100 made with python, but how does he do multi
RYANTADIPARTHI Try this link:
https://www.raywenderlich.com/2614-multiplayer-game-programming-for-teens-with-python-part-12 years ago
nicholasBolen I don't think the script you found on stack overflow will really help you much. You should try looking into repl auth some (repl.it's login/authentication system) and then work from there.2 years ago
I am making a among us game, and this error happened when I was testing it:
Oof i wish there was a program that used some english syntax like a eq
RYANTADIPARTHI It looks like you are importing main as m You are supposed to import the name of the function, or class. Not a file name.2 years ago
Does anyone know how to make an AI chat? (like actual AI, not if statements?)
RYANTADIPARTHI Ai is really hard to work with, but i think you can make that, even though, it's not visual most of the time.
2 years ago
Baconman321 That is really hard, a lot of time it would have to be if then statements. In fact, most of the "AI" is in 3d/2d graphic (by graphic I mean visual, not text games). It would be hard to do text. I recommend you have your own scenarios, pick a random number, then put up that scenario based off of that number.2 years ago
I am starting a among us game, and for some reason it says maximum recursion depth when I run it.... Please help!
SUHASTADIPARTH1 You have to take out the a('') on line 19
You have that error, because you are calling the function too many times, past the python limit. You are exceeding the limit.
Screenshot 2020-11-07 at 12.03.37 PM
Screenshot 2020-11-07 at 12.03.23 PM2 years ago
DynamicSquid Here's your problem:
def a(t):
for l in t:
sys.stdout.write(l)
sys.stdout.flush()
time.sleep(random.random()*10.0/typing_speed)
a('')
You've stumbled upon recursion. That means you're calling a function from that function. A simple example is this:
def recursive_function():
recursive_function()
That function will never stop running since it keeps calling itself over and over again.
What is your a() function supposed to do?2 years ago
Coder100 image
Here you go! Line 19! Your function would call itself again and then it would print '' and then call the function again trying to print '' and again...
So, the solution is to change your code to:
def a(t):
for l in t:
sys.stdout.write(l)
sys.stdout.flush()
time.sleep(random.random()*10.0/typing_speed)
print('')
`2 years ago
I made a chatbot! (it's not AI, i'm currently learning AI right now). Hope you enjoy! :)
I am going to start coding another RPG battle game! I need a team that is intermediate at python. Requirements: Know classes and global variable and t
Dylan-Pusilo Hey, @HappyLunchBox, I created a team called Terminal Reality, where we make terminal games. I know, it's a clever name. But anyway I was wondering if you'd like to join.2 years ago
I posted a question earlier about this, and someone said to use global variables, but now I am getting syntax errors.
RYANTADIPARTHI You need to name the global variables at the very beginning of wherever you're starting. Please mark my answer if this helps. Thanks!2 years ago