Noah Campbell
@TheImagin33r
hi
a while ago i found a link that gave me hacker for free does anyone have a link that does that
like if a list was like {"A","B","C"} how could i choose one at random
mesquite2234 1: Curly brackets (in python) are for a dictionary, not a list (Lists use [])
2: The random module
import random
list = ['A','B','C'] # Note [] not {}
thing = random.choice(list) # thing can be anything
`2 years ago
I want to use my font in css font format. but how do i get it to use the file as the font type? I have the file. Its a .ttf file and should work all i
hyperupcall hi!
to start off, i would recommend converting your .tff font file into a more web-friendly format such as .woff or woff2 using a conversion tool (i like to use (fontsquirrel)[https://www.fontsquirrel.com/tools/webfont-generator]), although this isn't strictly necessary
after you convert and upload that to your repl, then you can add it to your stylesheet with css. the crucial part being, you use the @font-face at-rule
@font-face {
font-family: 'Baloo Bhai';
src: url('fonts/ba3 years ago
it doesnt seem to work for me is there a reason why?
For some reason files are appearing in my game The Inspector.
what the
the last 3 files i did not add. why did these appear and what are they for
Geocube101 These are most likely files added by repl.it during initialization of modules
(Kind of like the package.lock file for node.js users)3 years ago
Take the challenge! Build a program based on the default name. i get one every time when you visit https://repl.it/languages/python3. share the finish
it doesnt seem like its that popular. because im literally on the first page of top contributers with little ammounts of posts
amasad As others said, it's pretty huge. Repl Talk is somewhat new/experimental part of the product that we're still trying to figure out how it fits with the rest of the site.3 years ago
The Inspector is a game about making sure things run smoothly. Each level displays a list of results. There is only a few levels at the moment but mor
Python
mkhoi Hey this doesn't start the level even if i write the correct number, i can see that you have level files but you have to make them run3 years ago
So my program is supposed to be like
if ans == 16:
_
the underlined part is where i want to put the code to run code from another file in the proje
ash15khng Assuming you want to run the code in gamecode.py and it's in the same repl, type import gamecode. It should run that file.3 years ago
Hi everyone! I made a game. Wait... Nope. this is stil my work in progress! Its not done yet so please don't try it. There are a lot of bugs and I d
Python
mwilki7 The pause at
Do you really want to play a game? [Y/N]
then it proceeded to the next line right as I was going to enter something:
OF COURSE YOU DO THATS WHY YOU ARE HERE...
made me laugh3 years ago
how do you use it. Im looking to make a game. just want some help learning how to use it
hyperupcall hey!
i think a little while ago i made a tutorial on pygame. im sure there are other ones on the net, but if you want to check out mine, it's here.
once you make the simple game from the tutorial, it might become easier to follow the official pygame docs
hopefully i helped :)3 years ago
I built a snake using HTML. I need to still work on:
A score counter - thx @kaldisberzins
More blueberries at a time - added by @kaldisberzins
more fe
HTML, CSS, JS
kaldisberzins I forked your repl and added a score counter. All I did was add 3 lines at the end of your render function. You can see the repl here: https://repl.it/@kaldisberzins/Snek4 years ago
yay. there is one problem. it will say tie game when it is not actually a tie game. can someone explain why it does this and why its doing this
this i
Python