SamKunefeh

@SamKunefeh (40)
I code.
SamKunefeh
SamKunefeh
shared a Post
12 months ago
9
Artifax: A Fantasy RPG
Share
After months of hard work, I present to you: Artifax But what is Artifax? Artifax is simply a text fantasy RPG game, where your goal is to slay enem
Artifax
Python
Read full post
pythonorguser
pythonorguser image12 months ago
pythonorguser
pythonorguser I can never sleep12 months ago
SamKunefeh
SamKunefeh
shared a Post
1 year ago
3
Jam- 10 Submission
Share
Hi Everyone, this is my submission for the 10th jam. What is it? Introducing........... PIE (Python Intelligence Expert) PIE is a cutting-edge stat
Jam- 10
Python
TsunamiOrSumth
TsunamiOrSumth gl!1 year ago
TsunamiOrSumth
TsunamiOrSumth Pie!1 year ago
SamKunefeh
SamKunefeh
shared a Post
1 year ago
2
Database For Text Game
Ask
Hello everyone, I am currently making a text based adventure game. The game has now got so big, that it can't be completed in one sitting. So, I need
Coder100
Coder100 Anyways, your current solutions are great!1 year ago
Coder100
Coder100 Also try repl.it-DB (turn on explorer mode) Docs https://pypi.org/project/replit/1 year ago
Coder100
Coder100 I think JSON is a great option as well.1 year ago
SamKunefeh
SamKunefeh
shared a Post
2 years ago
2
How Can I implement The 'search' Feature?
Ask
Hi, I am relatively new to coding and decided to make a telephone directory to practice making and using dictionaries. I have implemented all my desir
Telephone Directory
Python
SamKunefeh
SamKunefeh Thanks CoolJames1610!!! I tried to implement your suggestion, but unfortunately there was some kind of error. But it also gave me another idea, to make a function that looks through the dictionary. So, I made a new function. def searchnamedirectory(search_input): searchsplit = searchinput.split(" ") search_output = "" for name in search_split: search_output += directory.get(name, name) print(search_output) 2 years ago
CoolJames1610
CoolJames1610 make the list of searchable items in a list and do if search_input in (list): maybe this is what u r looking for :D2 years ago
SamKunefeh
SamKunefeh
shared a Post
2 years ago
AttributeError: 'list' object has no attribute 'current_health'
Ask
When I run this repl, it chooses a random class and assigns current_enemy to it. However, when I try to access the class' attributes, it gives this er
dillonjoshua68
dillonjoshua68 @Jackbaklava , currentenemy refers to the list you created (enemylist), and the program says that that list doesn’t hav an attribute called current_health2 years ago
FlaminHotValdez
FlaminHotValdez You never created a Player, you only defined the class.2 years ago
SamKunefeh
SamKunefeh
shared a Post
8 months ago
1
Clash Royale API with Axios
Ask
Hello everyone, I tried using the ClashRoyaleAPI with node.js but it doesn’t work cause there’s and error 403 forbidden. I know that it means that I d
RemoryX
RemoryX Hey! So I was a bit confused as to why this wasn't working when I saw it. I checked the Clash Royale API and got a key, and I believe the issue is that it requires you to register a static IP address for the key. I did some searching and found there is a 3rd party service that can and will serve as a proxy for your requests. The proxy URL is proxy.royaleapi.dev - and the static IP you should use when you get a key is 128.128.128.128 Should work on Replit if you use this method! brave_8r44SJ168 months ago
SamKunefeh
SamKunefeh Sorry for the mistake but I didn’t use axios8 months ago
SamKunefeh
SamKunefeh
shared a Post
1 year ago
1
Audio Not Working
Ask
I was just messing around with replit’s new feature and even got to the point where it was working. However now when I try to play this file, the soun
RYANTADIPARTHI
RYANTADIPARTHI Solution Your code should work. Maybe try these steps: change the name of your file to sound.mp3 put that name in the play_file put your stuff in a function Your code should look like this: from replit import audio def sound(): source = audio.play_file('sound.mp3') sound() And you should have a file with the name of sound.mp3 Also. remove the while loop, and the time. when you remove them, run it, if it works. Put them back, and try again. Ping me if nothing works. But it should work thou1 year ago
SamKunefeh
SamKunefeh
shared a Post
7 months ago
1
Wierd Nodejs Behaviour
Ask
Hello Everyone! So in this repl I made a simple express server and made it serve index.html. The html file has a script tag for running script.js and
Coder100
Coder100 anyways, script.js isn't nodejs -- its web js!! So that means you can't use axios or any of the cool node things. It's not node!7 months ago
Coder100
Coder100 that's not nodejs anymore -- that would be just dom js7 months ago
SamKunefeh
SamKunefeh
shared a Post
12 months ago
1
Help Needed For Help
Ask
I am currently working on a project that has now gotten to over 1500 lines of code. The problem however is that in a specific feature, my compiler is
RYANTADIPARTHI
RYANTADIPARTHI can i see your repl?12 months ago
Coder100
Coder100 Looks like you might have something like this: def whatever(): if True: return 5 print('wont run') This won't work because return returns a value, and it would be redundant to have more code be executed beyond that point.12 months ago
Coder100
Coder100 then just release the code lol12 months ago
SamKunefeh
SamKunefeh
shared a Post
1 year ago
1
Jam-10
Ask
When are the results of the 10th code jam going to be announced?
Coder100
Coder100 it takes up to one week to one month (programming language jam uggh) for results. I predict this one to be about 7 days as the hoster is actually a good judge.1 year ago
RYANTADIPARTHI
RYANTADIPARTHI Not sure yet, but soon though.1 year ago
TsunamiOrSumth
TsunamiOrSumth sometime1 year ago
SamKunefeh
SamKunefeh
shared a Post
1 year ago
1
Updating Variables In For Loop
Ask
Hello everyone, In this repl, I try to update my variables by looping through the new values, and then assigning them to the variables. However, inst
SamKunefeh
SamKunefeh Sorry guys, what I meant to say was looping through an iterable of the variables(x and y in this case) and then updating the variables by getting the new value from a dictionary. The problem with this however is that it only changes the temporary local variable in the for loop and not the actual x and y values.1 year ago
Coder100
Coder100 Two ways predefining myStr = "" while True: myStr = "something else" # now it changes the global scope global while True: global myStr myStr = "something else" # same thing `1 year ago
RayhanADev
RayhanADev Heya @Jackbaklava To define a global variable simply type global in front of the variable! That should work, but if not feel free to bug me about it! Cheers. ~ Ray <31 year ago
SamKunefeh
SamKunefeh
shared a Post
1 year ago
1
Find Time For Coding
Ask
Hi everyone, since school has started, I find it difficult to find time for coding. In the day, I do my homework, and I try to code a little at night
Bookie0
Bookie0 yea I'm having the same problem, and tbh I think most people on repl.it are students (between 10-17 y/o) so they are also trying to balance school and coding, as well as friends, family time, HW, and ofc trying to get off screens @Coder100 said, if you don't code for like 1 day or even 1 week it's not like you're gonna forget. I aim to just code a bit, just to advance a bit in my projects and also to not lose my streak, but school and homework and tests, as annoying as they are, those are always1 year ago
Coder100
Coder100 10 minutes seems enough :D ig there are some times in the morning as well, but schoolwork is a priority, and it's ok if you can't do any coding, there's always the weekends and the summer!1 year ago
SamKunefeh
SamKunefeh
shared a Post
6 months ago
1
type=“module” not executing script
Ask
Hello everyone! So I was making a kaboomjs game and decided to split my scenes into different files, which meant that I had to use import statements
QuickV
QuickV Console says: "Relative references must start with either "/", "./", or "../". at /" I have no idea what that means though.6 months ago
SamKunefeh
SamKunefeh
shared a Post
11 months ago
1
HTML same nav on multiple pages
Ask
Hello everyone, I have a problem where I have created a nav in index.html that links to other files/pages. However, I want the same nav bar to be at t
RYANTADIPARTHI
RYANTADIPARTHI try this link. https://stackoverflow.com/questions/676394/how-to-include-an-html-page-into-another-html-page-without-frame-iframe11 months ago
TimothyRowell
TimothyRowell Ok, can you invite me to the repl because I cant explain that here its better to do it there. 11 months ago
SamKunefeh
SamKunefeh
shared a Post
11 months ago
1
HTML Image next to text
Ask
Hello everyone, I recently started learning html and css and want to build a website where for the main content, there is an image next to some text.
InvisibleOne
InvisibleOne There are two ways you can do this Number 1 Make their position fixed and then set the image to have a left of 20px and a width of 400px, and then the text to have a left of 430px, you may also need to make them display as an inline-block Number 2 Or you can just make them both display as an inline-block and set the verticle-align to top and as long as the screen is wide enough they'll display next to each other.11 months ago
SamKunefeh
SamKunefeh
shared a Post
1 year ago
1
Class inheriting self method
Ask
Hello everyone, in this code I understand why the error message is popping up, because I am trying to access a class’ attributes by using self, which
Coder100
Coder100 Well, the thing is, you are trying to recreate static methods, which is a no no. Make a static method instead and you will see it works. class Animal: @staticmethod def speak_name(self, text): print(text + self.name) class Bird(Animal): name = "bird" Bird.speak_name("My name is ") https://codingpointer.com/python-tutorial/static-class-methods 1 year ago
RYANTADIPARTHI
RYANTADIPARTHI One thing is you haven't made an instance for the class yet. The class should contain the parameter of text so put that in first.1 year ago
SamKunefeh
SamKunefeh
shared a Post
12 months ago
1
Storing Encryption Key in replit db
Ask
I am planning on using python’s cryptography package to encrypt and decrypt an important file with a random Fernet key. The problem is how I store the
RYANTADIPARTHI
RYANTADIPARTHI nope. They can't access it. But if you are talking like run the program, and they accidentally type something correct, and see it, then i guess yes. But if they fork it, maybe if you are planning to put it somewhere known, they can see it. Normally, for now, they can't12 months ago
SamKunefeh
SamKunefeh
shared a Post
2 years ago
1
Text Features
Ask
I have seen many posts where people use bold text or large text, but I don't know how to use these features. Can anyone help me?
SamKunefeh
SamKunefeh WOW Thanks for the help guys!2 years ago
CodingRobot12
CodingRobot12 Use this hyperlink to check out this tutorial: image2 years ago
Coder100
Coder100 Hi!! That is something called markdown. header header header header header header bold text italic strikethrough can be combined Lists Lists Lists and also code links images) > blockquote horizontal rule ‍ ` code displays: code ‍ `js for (let i = 0; i < 50; i ++) { // formatted code! } displays: for (let i = 0; i < 50; i ++) { // formatted code! } read more here2 years ago
SamKunefeh
SamKunefeh
shared a Post
11 months ago
1
Image not showing
Ask
When I run this repl, nothing appears on the website eventhough an image is supposed to be there. And yes, I have tried renaming the image file’s name
SameeraMurthy
SameeraMurthy Simple Solution It looks like you spelled src wrong! You should do (on line 10): src just stands for source.11 months ago
IOP3
IOP3 Solution Do: title `11 months ago
SamKunefeh
SamKunefeh
shared a Post
12 months ago
1
Stick with one language or not?
Ask
I have almost a year of experience with python and have gotten to a kind of intermediate level, where I have covered all the fundamentals, OOP, file
Coder100
Coder100 jump into whatever language you want! You won't be able to forget python, once you learn it you learn it.12 months ago