Fire-Wizard
@Fire-Wizard
Welcome,
This game is made in python
this game features:
•hangman game
•guess the number
if glitches found, please inform me so I can fix them
thx
Python
I wanted to make some hotkeys. so I found out about keyboard and it's useful feature that detects keypress which I really wanted.
Then I tried importi
TobyWalter Getch comes up with an error when I try to import it, it may also not be compatible.1 year ago
YPD You need root to use the keyboard module... and that's a thing you can't do on repl.it. You can't be root.2 years ago
JBloves27 Oh, well, because it is python, you might want to use the getch module or maybe as Wumi4 said, use pynput?2 years ago
is there dark mode in repl. if so then how to activate it?
Bookie0 For dark mode on the site, check this out! :)
For dark mode the IDE, click the settings icon, scroll down a bit and select 'dark' mode :)
Screen Shot 2020-12-13 at 4.32.10 PM2 years ago
ch1ck3n
If you go to the left sidebar in the IDE, there is a settings icon. Click that, and there will be a dark mode toggle switch.
image2 years ago
This is a collection of two games.
contents~
1) hangman
2) guess the number
3) there is no 3, haha
note: if you know how to improve this then please d
Python
I wanted to import a WHOLE program to get imported and started I have seen it work outside the if statement but why is it not functioning in an if sta
Python
NoNameByProgram The absolutely biggest problem is that you use a
str that is being compared to a int in the if statement.
Change the "1" and the "2" in the if statement to a string, not an integer.
The other problem is hangman.py does not have a play() function.3 years ago
RYANTADIPARTHI I think you can, but your problem is there is no such thing called play() So when you import it, and say hangman.play, it doesn't know what to do.
Screenshot 2020-11-18 at 7.25.04 AM
also, you are comparing str and int game == 1
Change it to be "1" in string formatting.
Change it, and it should work3 years ago
k9chelsea2 could you reword your question please, I didnt understand it sorry :( EDIT: I think I think I get it now, im not sure idk python that well sorry for wasting ur time lol3 years ago
I was coding I was such a hard time I broke my head for days thinking of a solution for the problem then I finally DID IT!
then I wanted to try it out
Coder100 They removed it, you can view the blog post here
It's coming back soon! I hear they are using hCaptcha now...
For now just click the share button on the top right and click copy embed code3 years ago
RYANTADIPARTHI It's removed for now, you can't use it, but hopefully, they will bring it back.3 years ago
Bookie0 Hey,
A similar question to yours here
Basically it was removed as
Screen Shot 2020-11-17 at 11.49.51 AM
read more about it here
Alternative:
Here's a workaround: https://docs.repl.it/repls/repl-run
I also hope they put it back! :)3 years ago
this is my hardest code I made
everything works but... there is no stick figure being drawn if you get wrong, so I gave you the life points for compen
I have been trying to make a hangman game, Everything works fine except that it does not give the previous guessed letters in the correct places like
this does the job but it doesn't bring the already correctly guessed numbers
any help will be appreciated
RYANTADIPARTHI It's because you are adding a line for each correct answer. And are displaying it at the end.
Don't do that.
OR to help, here's a link:
https://www.pythonforbeginners.com/code-snippets-source-code/game-hangman
3 years ago
hello everybody.
this is my first game program so it may not be so good.
Any suggestions will help
Hope you enjoy!
Rombicom This is great, a bit of debugging to do though. In line 53 you have written the argument as a float where it should be two integers. To improve it further i would introduce a UI, nothing crazy just tkinter or something akin to it. But overall it's really good.3 years ago