Temporal Shadow

@kbadrinath_tcsp (206)
勇気と賢さ
My First repl
posted to Share by cpiechocki

just add spaces and overall refining to the text, otherwise nice first program

error message
posted to Ask by ChristianaAbbos

Oh, I see now. You are using the requirements.txt package, and thus you have to install it first. Otherwise the program won't recognize it.

MNM's Burgers - My 400 Cycle Special
posted to Share by VulcanWM

For the input, i think you should do .lower() so the user can input y or Y and n or N.

Tesla Hire me Plz!
posted to Share by LazyComputerWee

you have to write stuff like sleep, play, help or start

PRIDE MONTH!
posted to Share by Coder100

thank you! I wanted to change my profile picture for this, but didn't really know how. (I am quite unskilled with photo editors.) this is great!

How can you let a program save the runner's progress?
posted to Ask by Centslord

If this is in HTML, CSS, JS, you use something along these lines

(this is code from one of my games, I'm sure it'll be easy for you to search up)

var score={}
var slimes
var ranchers
window.onload=()=>{
//localStorage.removeItem('score')
if(!!!localStorage.score){
slimes = 0;
ranchers = 0
score.slimes = 0
score.ranchers = 0
localStorage.setItem('score',JSON.stringify(score))
document.getElementById('slimes').innerHTML=slimes
}else{
slimes = JSON.parse(localStorage.getItem('score')).slimes
ranchers = _get().ranchers
score.slimes = slimes
score.ranchers = ranchers
document.getElementById('slimes').innerHTML=slimes
}
console.log(_get())
start()
}

This function above is how you set everything up. You can use this function if you want, but I can help you customize it for your own needs.

localStorage.setItem('ranchers',JSON.stringify(ranchers))

And in my program, ranchers are one of the things you can buy, so to save the ranchers you do that code above, with whatever else you want to do. If you're doing a clicker game, I might be able to help.

function _save(){
localStorage.setItem('score',JSON.stringify(score))
}
function _get(){
return JSON.parse(localStorage.getItem('score'))
}

You put these two functions as well, because we used them earlier.

Lastly, since you are making a clicker game, you need a window.setInterval thing, which is here

unction start(){
window.setInterval(function(){ slimeClickaroo(ranchers); slimeClickaroo(wranglers);slimeClickaroo(mechs);_save()}, 1000);
}

hope this helped!

if you need more of an explanation, you can make a repl and I'll show you.

Hacker vs God
posted to Share by 10mohammed10

from where? @BobNeo

How many people are going to add points to my account?
posted to Ask by hcahoon01

This depends on if you post projects, or answer questions on ask. There is no set amount to the number of people who are going to add points. Most of the time, people post their projects on share, or as I said earlier, answer questions on ask, (which is what I am doing right now!) If this answered your question, make sure to mark it as the answer!

How to paste in repl project?
posted to Ask by DangHoang2

Hi. It is alright if your English is a bit off, I could understand your message perfectly fine. Don't let that bother you. To answer your question, just do ctrl-c, or command-c, to copy your license, and then do command-v, ctrl-v to paste it into the repl. You can't right-click paste on to the repl for some reason. Command-v if you are on mac, and ctrl-v for anything else.

Typing Speed Test
posted to Share by CodingCactus

im so..... close!!!!

Does anyone want a professional/informal website made for them.
posted to Ask by VidyootSenthil

Thank you! Gave this an upvote as [email protected]

Bars
posted to Share by YuvenOberai

Yo this is awesome! I'm really sad actual good projects like these don't get the recognition they deserve. It's like, there's some random 25 line code that gets 50+ upvotes, and this only has 1?

@DynamicSquid @YuvenOberai

Need ideas (and also a tutorial)
posted to Ask by VyomJain

i can help you with the html, css, js part, tell me when you want to. For python, try making a text-based game (beginner), or different function based-games. Looking at your knight simulator, i see that the whole things runs on a huge block of if and else statements. Not to be mean, but this is not efficient code. You should make your games function based to be more code efficient, and it will help your practice your overall efficiency. IF you are more advanced, use pymongo and make a chat. @CoolJames1610 has a tutorial on this.

if this answered your question, mark it as the answer!

any learners in junior high?
posted to Ask by Sacilave

if what you're asking for is a unity tutorial, Coder100 has one. They are a prolific creator using Unity. Definitely ask them for help. I'll post the link to their tutorial here.
https://how-to-make-a-unity-game-tutorial--coder100.repl.co/
hope this answered your question!

Noob vs Pro in coding!
posted to Share by 10mohammed10

think they were just doing that to fully explain the pro [email protected]

Discord.py bot
posted to Ask by SystematicError

https://realpython.com/how-to-make-a-discord-bot-python/

If this answered your question, please mark it as the answer!

ULTIMATE_TRUE_FALSE
posted to Share by Bookie0

lol
"is my head going to get pooped on by a chicken"

I think I made STRESS
posted to Share by DynamicSquid

i's got 11 ha ha ha

I want to make a website
posted to Ask by CatKitty7

alright invite me to it @CatKitty7

I want to make a website
posted to Ask by CatKitty7

You there @CatKitty7 ? Still wanna make the website?

I want to make a website
posted to Ask by CatKitty7

Sorry to bother you, but by html css and js, I mean, when you make a new repl, you have to choose the lang html, css, and js, which has a little red i con next to it

@CatKitty7

Give me some funny ways to die (it's for a new game)
posted to Ask by BobTheTomatoPie

Killing someone in battle, beheading them, taking their severed head, strapping it to your horse, and riding it back into town. However, the teeth from the severed head come into contact with and infect you, making you sick and eventually killing you (someone actually died from this)

I want to make a website
posted to Ask by CatKitty7

use html, css, and js. If you want some help with it, I'd be happy to help you. You can make a repl and invite me to it.

i want to save the likes
posted to Ask by kbadrinath_tcsp

Alright, did that. @ChezCoder

How come the answer variable is not printing
posted to Ask by BPChallenges

One recommendation i have is to take the user's input and .lower(), so in the if statement do

if answer1.lower()="d":

this is because if they type lower case d they will get it wrong, but with this theyll get it right

Best way to learn programming to code a card game?
posted to Ask by arodceo

i'd recommend the card game war. It is a very simple game to code, and if you don't know it, search it up online. The game war is definitely a very easy game to start with. Along with blackjack. These two games primarily consist of random ints and comparing them. If this answered your question, make sure to mark it as the answer!

How do I define my variable?
posted to Ask by AaliyahBishop

This should fix your problem

i just changed the code a little. I will explain what i did down here. So basically the reason it is saying flip is undefined is because you have to include flip in the parameters of the function you are declaring. For example, you would have to do def coinFlip(flip):, and then blah blah blah. But, you also have to assign flip a temporary value, i did "" cause thats the easiest.

On a side note after running your program to test it I found that your program was not returning the user's score, as it is supposed to, so I fixed that as well. What was wrong with that was that flip was a string, but you were checking it as if it was an integer, which meant the program just stopped there. Thus, you can make a new variable, I called it flip1 for conciseness, and made it's value int(flip), so you can use flip1 instead of flip in your if statement. Hope these answers helped, and if they did, you can mark this as the answer.

help
posted to Ask by Alfredo12

I don't think you can run it like that to terminal. Also, whatever python programs you make will all have main.py. You can't just run main,py in terminal without declaring it anywhere. It is saying main is undefined because it doesn't know what it is, as you haven't imported or added it to the code. Your best bet would be to take the code from your repl and use it in terminal. @Alfredo12

Typing Speed Test
posted to Share by CodingCactus

The addition of the long passages is amazing, it really makes it so that we can't use the short sentence to type in bursts. This is a much better way to test WPM! @CodingCactus