Tyrannosaurus Rex
@Trex10
Why is it so hard to come up with ideas??? ):
0
Basic Java CalculatorIts a calculator (but very basic) I know that its bad but I just started learning java so yeah enjoy!
17
0
0
the print statement on line 40 in this code is just makin an empty line instead of printing what I want. But if I put it up onto line 33, it does prin
Python
RYANTADIPARTHI
you don't seem to be using correct if statements. They seem to be getting mixed up with others.2 years ago
elipie one reason may be: Your python code is too cluttered, a way to fix this is to actually use the lex/parse method to create a language, and it is just way much easier to understand, I tried creating a language like this and it was extremeley hard when I got to if statements, functions, so on.
Another reason is maybe because there is something wrong with your elif statements
other than that i do not know
2 years ago
How do I make it so that if a user clicks something on the HTML page it changes something on there? I know I can do a function event listener thingy i
HTML, CSS, JS
Coder100 Html:
lol
Clikc
js:
document.getElementById("button").addEventListener("click", function() {
document.getElementById("demo").innerHTML = "Paragraph changed!";
});
perhaps you need to take the time to properly learn js?2 years ago
DavidShen2 You can use javascript to change the HTML.
More info here: https://www.w3schools.com/jsref/prophtmlinnerhtml.asp2 years ago
This is a password cracker I made. Right now it can only solve for number passwords. (So when it asks you if you want your number in letters or num
Python
Hello,
In this program I'm trying to make a letter run around the screen using WASD, is there any built in getch(or python/any other module) function
Python
Coder100 I would recommend using curses for this. Not only does it have getch 'built-in' (getch was actually inspired curses), you can set it on the y and x
https://docs.python.org/3/library/curses.html2 years ago
Hello,
So in this program I have code that should be drawing the lime screen I made,
but for some reason it just gives me a bunch of ALSA lib things a
Coder100 *Light blue screen
Anyways, it's a repl.it bug in which the c binary files weren't able to be loaded correctly. No worries, just report it to bugs: https://repl.it/bugs and try putting it in a pygame repl or tkinter repl2 years ago
RYANTADIPARTHI maybe try putting pygame.quit() at the end, and instead of putting 0, 0. Try putting values. maybe that will work.2 years ago
Hello,
I'm having trouble making images in pygame, I define the image fine, but its the screen.blit where I get stuck. I've seen some answers, but whi
RYANTADIPARTHI Solution
after you import pygame, you need to add pygame.init() Then blit it. like this.
import pygame
pygame.init()
display_width = 800
display_height = 600
gameDisplay = pygame.display.setmode((displaywidth,display_height))
pygame.display.set_caption('something')
Img = pygame.image.load('something.png')
gameDisplay.blit(Img, (x,y))
look here for more info.
https://pythonprogramming.net/displaying-images-pygame/
That should work2 years ago