hacker

Shorya Malani

@ShoryaMalani (4)
For my website, how do I keep everything center
posted to Ask by nianp

@bramley oops did not see your post before posting mine. that is correct though.

For my website, how do I keep everything center
posted to Ask by nianp

Add
body{
text-align:center;
}
to css. that should work

Number Guessing Game
posted to Share by leesroxyy

Hey I remember when I did this a while back and somethings that can be really nice when working with users are making sure no matter what they type the program will not crash.
This can be done using a try: block before using int(input so that things will run smoother if accidently type a letter. Using a try block with a while statement is usually the best approach.(actually it might not be that is just how i do it)
something else that would be nice is adding a colon and a space at the end of an input statement. like guess=int(input('Try again: '))
If you can also print("") in places that need spaces as this makes more sense. This can be after Too high.
Lastly adding a way to say hey I want to play this game x number of times and then add a scoreboard for each time you play that is simple like hey you took 10 try which is 3 better than your last attempt. And then at the end average all the numbers and say hey it takes you average 5 times to solve this puzzle.

Who wants to code a good game?
posted to Ask by CaptainPoultry

@CaptainPoultry it is Sm and the number is #2850

Who wants to code a good game?
posted to Ask by CaptainPoultry

@CaptainPoultry Discord is currently down but I will get back to you as soon as I can.

Who wants to code a good game?
posted to Ask by CaptainPoultry

@CaptainPoultry you asked for a discord. If thats not how you send that im sorry, im new to this.

Who wants to code a good game?
posted to Ask by CaptainPoultry

@CaptainPoultry its just Sm

Can I have something run at all times
posted to Ask by ShoryaMalani

Thanks for all these ideas. I did end up using @Highwayman's idea for the https://ping.matdoes.dev/ as I did not need to create either an account or another website.

How can I Start the movement between rooms?
posted to Ask by Imnotnot1

Just to note, numbers cannot be variables. Also an array of arrays would be much easier to work with like
[ [0,2,0,0,0,0,0,0,0,0,0,0,0,0,]#0(Basement)
[4,0,2,0,0,0,0,0,0,0,0,0,0,0],#1(Greenhouse)
[0,4,0,1,0,0,0,0,0,0,0,0,0,0],#2(Outside)
[0,0,3,0,2,4,1,6,0,0,0,0,0,0],#3(Lobby)
[0,0,0,4,0,0,0,0,0,0,0,0,0,0],#4(Cloak Room)
[0,0,0,2,0,0,0,0,0,0,0,0,0,0],#5(Dining Room)
[0,0,0,3,0,0,0,0,0,0,0,0,0,0],#6(Armory)
[0,0,0,5,0,0,0,0,2,4,1,0,3,0],#7(Upstair Lobby)
[0,0,0,0,0,0,0,4,0,0,0,0,0,0],#8(Bedroom)
[0,0,0,0,0,0,0,2,0,0,0,0,0,0],#9(Music room
[0,0,0,0,0,0,0,3,0,0,0,2,0,1],#10(Study)
[0,0,0,0,0,0,0,0,0,0,4,0,0,0],#11(Ball Room)
[0,0,0,0,0,0,0,1,0,0,0,0,0,0],#12(Gallery)
[0,0,0,0,0,0,0,0,0,0,3,0,0,0] ]#13(Secret Study)
you can then use this with dungeon[0] = 2

module error IBSerial
posted to Ask by sura2016

The problem it seems is in your actual code there is a space before from IBSerial import *

Can I have something run at all times
posted to Ask by ShoryaMalani

@ShoryaMalani If you would like to see the code I could do a repl.it multiplayer.

Can I have something run at all times
posted to Ask by ShoryaMalani

For reference the website is empires.shoryamalani.com It is a game that I am creating. If you want to try just create a game and I will manually fill it up with other people.

Who wants to code a good game?
posted to Ask by CaptainPoultry

@ShoryaMalani sorry I just realized you answered my second question.

Who wants to code a good game?
posted to Ask by CaptainPoultry

@CaptainPoultry By relatively how much like what do I need to know and what language are you using.

Number Guessing Game
posted to Share by leesroxyy

@ShoryaMalani I started one of the improvments I talked about. If you like you could implement the others. Here is the https://repl.it/@ShoryaMalani/random-number-guessing-game

Number Guessing Game
posted to Share by leesroxyy

@LizFoster When you say use double quotations dont you mean " versus ' not "" versus ' as that would not work.

Who wants to code a good game?
posted to Ask by CaptainPoultry

How good do I need to be and how much time will this take. Also what backend are you planning to use?

why arnt my images loading?
posted to Ask by epicroblocgamer


that does the trick and if you add that to all of them, they will all fix.

Why are the letters in the Name Neala not all different sizes?
posted to Ask by NealaKlein

It may not make a difference but your code would also be nicer if you always used a / on the end tags like </h2>. This will make your code easier to read because attributes would be purple and tags would be blue.