ColePete
@ColePete
I code with Python, HTML, Javascript, and CSS. I love to code and I am open to all ideas.
I have looked at this for the past 30 minutes and still can't figure it out... maybe ya'll can tho
image
Please help and thx if you do
Python
In my website about me, why is the title of my creations messed up?
RYANTADIPARTHI Solution
i think your hrefs may have something with it. Your href's are not defined properly. You are missing ' and =
[Game] The Mighty Hero V 1.4
[Game] Brick Breaker"
4 Function Calculator
Dice Roller
like that.
That should work2 years ago
btfuss if its because of the fact that it is underlined... https://www.tutorialspoint.com/How-to-remove-underline-from-a-link-in-HTML2 years ago
In my repl, I am trying to center a UL in HTML. I want the bullet points to line up in the center of the page. Plz help.
InvisibleOne First off, you should put a closing `` after your list. Then try adding this to the css
ul {
text-align: center;
width: 300px;
margin: auto;
}
`2 years ago
I am coding a website, and my style.css file won't edit the look of my website. How do I fix it?
[GAME] The Mighty Hero Version 1.4!
Directions
In this game, you will go against different monsters and defeat them to save your village. Can you fig
Python
tankerguy1917 Hey that is pretty nice. Only thing i can thing to add is spells maybe. Other than that, its pretty good.2 years ago
The question is pretty simple: does pygame work on repl.it?
[GAME] The Mighty Hero
Directions
In this game, you will go against different monsters and defeat them to save your village. Can you figure out how t
Python
MemeManMeme yeah all im getting is a syntax error. It sucks, but it might just be a chromebook issue1 year ago
VincentMcIff Screenshot 2021-08-20 11.03.25 AM please fix this because I would like to try this out, I am on chrome1 year ago
This is an updated version of my original calculator.
This is a standard 4 function calculator for all to use for their math.
DISCLAIMER: I am sure
This is a standard 4 function calculator. Just follow the instructions, and finish your math homework. Please leave an upvote if you like it. (It is a
Python
JBloves27 Hello,
This is pretty cool but:
Dont ask for upvotes even if it does boost your morale
Nice project
Have a good day
Thanks!
-JBYT272 years ago
ColePete @RhinoRunner @ReyesP @InvisibleOne
I just posted an updated version that can be found here:
https://repl.it/talk/share/Calculator-V12/869182 years ago
In this repl, you can roll dice. You will get a random number each time, and you can do it as many times as you like. Have fun!
Python
In this repl, you can choose from 4 sided dice, a 6 sided dice, and an 8 sided dice. It is all random and you can do it as many times as you want. If
Python
This is a standard 4 function calculator for all to use for their math. Please read the README file before using.
Leave an upvote if you like it.
Python
Subroutine well if youmake the functions your self then the funtions in the custom functions count too, but if you'd like i have my own that's four lines in all2 years ago
[GAME] Monster Fighting Game V.1.2
Upvote if you like this please, it took forever to make.
How to play
Please READ the README file to learn how to
Python
ElanRodriguez3 THIS IS LIKE ONE OF THEEE BEST games in the world. No joke. Thanks @ColePete2 years ago
ColePete @Whippingdot @rush22 @chillcafe @clrmist21lukasz @JasonLiu19 @ElanRodriguez3
I just posted V1.3, you can find it here: https://repl.it/talk/share/Game-The-Mighty-Hero-V13/871572 years ago
In this game, you will go against different monsters and defeat them to save your village. Can you figure out how to do it and survive?
Please read t
Python
Look at the change from level 1 to two. Then look at the change from two to three. Why is it different? I want them to both be like the change from le
Python
RYANTADIPARTHI To answer you're question, it's because if you were using functions, you would put the first function calling at the very end of every Single function. Since all the functions, would run. But for the second to third, you just call it on each other, like this:
def first_func():
code
second_func() # calling second function here
def second_func():
code
third_func() # calling third one here. and so on
def third_func():
code
first_func() # calling
That's the reason2 years ago
ColePete @MocaCDeveloper @whippingdot I feel bad always asking ya'll for help, but, I am stuck.2 years ago
Any ideas on how to fix this error message? I can't figure it out.
image
Python
BD103 Maybe how you keep on setting the same variable to a different random integer?
Array indexing starts at 0, something like this:
[0, 1, 2, 3, 4]
Maybe your random int is out of range.2 years ago
Whenever you start level two, the monster's name stays the same as the first level. Any ideas on how to fix?
Python
RYANTADIPARTHI You have to update it like when it comes to level 2, make the name = to this name.2 years ago
Coder100 You forgot to reassign!
Remember, you put the name outside of the while loop so the name won't change!2 years ago
In this game, you will go against different monsters and defeat them to save your village. Can you figure out how to do it and survive?
Please read t
Python
ColePete Please consider leaving an upvote if you like it. Upvotes really help me out by showing me if people like it and that all of my work was worth it.2 years ago
In this game, you will go against different monsters and defeat them to save your village. Can you figure out how to do it and survive?
Please Read t
Python
ColePete @bowmand117 @InvisibleOne @techde @MocaCDeveloper @VMTU
I just posted V1.3, you can find it here: https://repl.it/talk/share/Game-The-Mighty-Hero-V13/871572 years ago
Whippingdot This is actually soooo good, even if I helped you, it is good. Just try to print some other random stuff to create a story line. And you can have a counter telling you how many turns it took to take the monster down. Finally you can have a limited amount of times you can do a move. Try to do this by yourself, it is simple. (Hint for counter: ++counter adds one to counter)2 years ago
How do I make the monster name a random one of my names in the monster_names section? And how do I make it to where that name is not chosen again?
Python
Whippingdot First, change monster names from {} surrounding it to [] surrounding it.
Then you have to add this:
import random
and this in the while loop before the if bow or sword:
monsternames2 = monsternames
random_name = random.randint(0, 4)
del monsternames2[randomname]
randomname = monsternames[random_name]
monsternames = monsternames2
and you have to replace:
monster = {"attack": 16, "health": 100}
in both places with:
monster = {"attack" : 16, "health" : 100, "name" : random_name}
`2 years ago
MocaCDeveloper use the random module.
Example:
import random
names = ['bob','jeff','bobby','jeffy']
name = random.choice(names)
last_name = []
last_name.append(name)
now, use this if statement to make sure the current name is not the last name
if name == lastname[len(lastname)-1):
print("do some stuff here to update the new name")
But yeah, for a random name use the random module. And to make sure the random name is not the same as the last one, i'd probably make a list and append each new name to the 2 years ago