@RomeroSchwarz (268)
𝓫𝓻𝓾𝓱
I hate that this works
posted to Share by JamesGordon1

"There are approximately 1,010,300 words in the english language, but I could never string enough words together properly to explain how much I want to hit you with a chair" - Alexander Hamilton

e
posted to Share by MrEconomical

....eeeeeeeee

.eee............eee

eeeeeeeeeeeee

eee

..eee...........eee

.......eeeeeee

Fighting Game
posted to Share by chiliconco

Could you make it so if you don't have enough stamina to do a move you have to choose a different one?

1300's Peasant Simulator
posted to Share by RomeroSchwarz

@Zackydoo Added it!

1300's Peasant Simulator
posted to Share by RomeroSchwarz

@CorbinDardenne Found the bug; It's fixed now.

why does this not work
posted to Ask by softwareinc3

By itself, int(num) won't do anything, as the value it returns isn't stored anywhere. Instead, do something like this for all of the operations:

  if op == "+":
    print("you have entered addition\n")
    num1 = int(input("please enter you first number\n"))
    num2 = int(input("please enter your second number\n"))
    num3 = int(num1 + num2)
    print(num3)

This converts the value to an int before storing it in the variable.

If this post helped, mark it as the answer

Clearing the Screen in the Classroom IDE
posted to Ask by LIAMSARETT

Using os.system is generally a bad practice because of the possible exploits with it. I usually use the ANSI escape codes to clear console. This code should solve it:

print("\x1b[2J\x1b[H")

The above code uses two ANSI codes, \x1b[2J to clear console, and \x1b[H to reset cursor position to 1,1.

If this post helped, mark it as the answer

Programmatically restart repl
posted to Ask by Pandapip2

By terminating the repl, it stops the program, and thus cannot restart itself. There might be a way around this:

  • Create a program (program1), probably in bash
  • Use program1 to run this program (glap-io)
  • Once glap-io ends, have program1 restart it.
  • Repeat if necessary

If this post helped, mark it as the answer

How do i have my javascript send a gmail
posted to Ask by paulcampos

This is a great tutorial on using the js gmail API. You'll also need this repo.
If this helped, please mark it as the answer.

1300's Peasant Simulator
posted to Share by RomeroSchwarz

@mattcooke Great idea! I'll implement that soon.

America Simulator 2000
posted to Share by RomeroSchwarz

@Kai_Justice Fun Fact: If you have 2ft of fat you can stop a 9mm bullet. We've developed natural armor in America.

Number Game
posted to Share by DiamondDude1

Cool first project! Try adding a filter that checks whether the input is actually an int (so it doesn't have an error message) and if it isn't prompt the player again.

how to do a if input
posted to Ask by bob212
print ("hello everyone im guessing your are here to take a indveruntre to esater island would u like to start")
if input() == ("start")
print ("welcome to easter island are journey will start here located east of the pacifc ocean") 

input() is a function, not a variable. You need to call it for it to work.

If this post helped, mark it as the answer!

I want to learn how to code in swift, can you teach me some basic lessons?
posted to Ask by AmeliaField1

Please, don't ask for tutorials on the Ask board, as this isn't a board made for lessons. Go to the learn board if you want to find tutorials.
But, here is what you need: this tutorial will teach you all of the basics of swift.

If this post helped, mark it as the answer.

How to create a black bg
posted to Ask by RngdMySt

Use the bgcolor attribute:

<html>
<body bgcolor="#000000">
[Your HTML Here]
</body>
</html>

If this post helped, mark it as the answer

Need some help with Termcolor
posted to Ask by CameronLONGBOTT

On line ten it should be:

print (colored("Artificious:\nHello " + username,"blue"))

If this post helped, mark it as the answer

Could this be improved?
posted to Ask by publicprince628

Instead of having like 20 print statements, try using a dictionary.
Here's how I did it:

heats = {'Aluminum':'903','Brass':'376','Carbon':'710','Copper':'385','Glass':'664','Ice':'2060','Lead':'130','Methanol':'2450','Water Vapor':'2020','Liquid Water':'4180','Zinc':'388'}
for item in heats:
  print(item + ': ' + heats[item])

If this post helped, mark it as the answer

(OUTDATED, KNOWN BUG) I made a text rpg "engine", and here is a little "game" to demo it...
posted to Share by eidhernan

Might have a little bug with the menu.

How do you store items in a file on a computer or online?
posted to Ask by Egghead21

Use jsonstore.io. It stores values in a json file format. Here is the python tutorial.

If this post helped, mark it as the answer

I messed up my code
posted to Ask by AdamBurianek

On line 4, you have a print statement with concatenation. The bit causing the problem is the + at the end. The solution is this:
print("The number below" + expNum + "is" + Smallnum)

If this post helped, mark it as the answer

Repl IRC
posted to Share

ok idea since it's so easy to get past the filter: put the filter on the receiving end. This won't prevent people from sending stuff, but it'll prevent everyone else from seeing it.

Detecting keypresses in c++ without pressing enter

@mwilki7 yeah just fixed that, my bad

Super simple little text-based game. Have fun, good luck
posted to Share by JacobJohnson7

@JacobJohnson7 damn i'm not that famous all i do is mess around in python

Super simple little text-based game. Have fun, good luck
posted to Share by JacobJohnson7

honestly so much better than my game

Can you remove the undefined in the top of the Repl.it before the colored arrow?
posted to Ask by AnthonyDeLillo

Just clear the console before you run it

1300's Peasant Simulator
posted to Share by RomeroSchwarz

@PantheraLeo04
1) yeah i saw that; it's fixed now
2) no

1300's Peasant Simulator
posted to Share by RomeroSchwarz

@zypA13510 It's in now. It doesn't say how many points you have, but they will affect the witch trials.

1300's Peasant Simulator
posted to Share by RomeroSchwarz

@mattcooke Alright, its in

BEAN language
posted to Share by AlexanderTarn

why don't you try making variables by using a dictionary? i used that and it works pretty well.