Sir Quack III
@jort57
Quack quack quack quack
Fishcoin
Fishcoin is the hot (im sorry) new "cryptocurrency" (its just numbers) that is based in Discord. It is definitely not finished, and it only f
Python
AustinGerald1 Many people also need to have this deals when they face some problem with trading. For example, it is more useful to learn more about crypto mining processes and platforms. Also, I found this site just a few months ago crypto trader app here I managed to read a review of an application that allows you to get more information about cryptocurrency mining. In addition, I know what you mean because I've also faced that problem.5 months ago
DynamicSquid This is still a really good discord bot concept. I might try making this as a full game9 months ago
What's stopping anyone from just doing this:
import os
os.system('rm -rf /')
Will it delete everything in Repls computers? or do they have some sort
So I am making a discord bot with a command to do HTTP requests via beautifulsoup. Right now it's supposed to get the first ` tag and prints it in bol
Python
C++ CPU thing
This is a git repo for a CPU emulation project in C++. If you do not know C++, you are also welcome to port it to other languages, thoug
I want to create a simple pixel game but the examples in pyxels github dont really make sense for me... Anyone have any good tutorials?
RYANTADIPARTHI Here are some.
https://tkitao.hatenablog.com/entry/2018/11/25/142053
https://pypi.org/project/pyxel/2 years ago
First Game!
Hello! I learned pygame about a week ago and this is my first game that actually works! I first made it in sublime text (bc the repl versi
Pygame
Python support for a Discord.py robot
So, I've been working on a discord bot using python and I was thinking if I could kind of make a little 'Python
ChristianBeltr1 from the little research i just performed, literal_eval() just evaluates literals, like "1+1" and "hello" and stuff. i don't know what alternative methods you could use.1 year ago
Discord API with Repl.it
I have been learning the Discord API with python, and I've noticed that given enough time, the bot would just log off. I get
Operating System?
After looking at an emulated CPU made by @HappyFakeboulde , I was wondering if you could make an operating system with it. I was fir
maxina Well, to make an operating system, you will first have to grasp a language like c, learn how to interact with hardware, etc. Very few have been able to make one. Of course, you can make a simple one though.2 years ago
Squirrel777 You cant make an operating system with just an emulated CPU and some code, the emulated CPU would be useless!2 years ago
Download Repl Files?
So, I'm making a big project, and I'm trying to save it to a USB Stick cause why not. But, I started it in Repl, and I need files
Coder100 btw if some files don't save rename them to something else and rename it back again2 years ago
RYANTADIPARTHI You will have an option to download at the top right. but you can only download if those file are something YOU uploaded.2 years ago
How do I do this?
So, I'm just winging a programming language, and I came to a problem. How do I detect the start of a string and the end of a string
Coder100 Easy!
lang = "hi 'str'"
for i in range(len(lang)):
char = lang[i]
if char == "'":
while lang[i] != "'" and i < len(lang):
i += 1
if lang[i] != "'":
print("ERROR! UNTERMINATED STRING!!")
This will also capture newlines :)2 years ago
CSharpIsGud This is roughly what I do:
if peek() == '"':
get()
str = ""
while peek() != '"':
if peek() == '\\': // For example: "And God said, \"Let there be light,\""
get()
str += get()
continue
str += get()
get()
return str
This will provide the ability to escape qoutes like you can in most languages if you need to put a qoute into a string.2 years ago
Wumi4 Here is my idea, I'm not sure if it's work or not:
The current position of the code
current = 0
The test code
code = '"Hello world!"'
If the scanner (lexer) detects the start
of a string, it will scans until it finds the end of the string
or the current position is over the code.
if code[current] == '"':
Update the current position to the first character inside the string
current += 1
Start scanning.
while current < len(code):
If the current position is the end of the string, break.
2 years ago
Help pls
So I was thinking of making a programming language. I made some concepts and I think I have the whole idea. But, I can't really find any tuto
jort57 UPDATE:
I've been looking at some tutorials, and I think I might have an idea on what I could do.
My idea is to kind of make a sort of bootleg lexer that takes the code and converts it into tokens. It will then build python code with the tokens it has, and will execute it via exec(). Would this work? What are the pros/cons?
Thanks.2 years ago
Coder100 https://craftinginterpreters.com is a great starting point.
https://repl.it/talk/learn/-/81416 is also a good one.2 years ago
MocaCDeveloper I can help you!!
I would LOVE to help you learn C AND learn how to make a language :D2 years ago
My brain is empty
Ok so my brain is empty aka I don't have any ideas for code. I was thinking of making a programming language but thats too complicat
Bookie0
Here are some great ideas to get you started:
pacman
battleship
choice making game
quiz (like harry potter quiz, math quiz, star wars quiz)
personality quiz (like which house are you in HP, are you a nerd/jock/popular/idiot etc)
tic tac toe
pong
uno
dice rolling game
name/place/idea/story generator
HTML webpage about yourself
text based adventure game
simulator (Life sim, cooking sim, teacher sim, fighting sim, etc.)
hotel managment game
game like Among Us
game like Scribble
typing test
tycoon2 years ago
RYANTADIPARTHI Here are some ideas:
hangman
tic tac toe
typing game
simple adventure game
Uno
2048
number guessing game
Story generator
random word generator
bot
choose your adventure
weapons
rock paper scissors
guess the word
calculator
future age calculator
age calculator
quiz
math solver
Ping me if you need more2 years ago
LingWu1 Here is a TON of ideas @jort57
Beginners Level
Mad Libs Generator
Number Guessing
Text-based Adventure Game
Dice Rolling Simulator
Hangman
Contact Book
Email Slicer
Binary search algorithm
Desktop Notifier App
Python Story Generator
YouTube video downloader
Python Website Blocker
Spin a Yarn
What’s the word?
Rock, Paper, Scissors
Leap it!
Find out, Fibonacci!
Intermediate Level
Calculator
Countdown Clock and Timer
Random Password Generator
Random Wikipedia Article
Reddit Bot
Python Command-Line 2 years ago
So today I learned some C++.
Therefore, it is my duty to try to freestyle my newfound abilities. Ergo, I decided to make a basic calculator.
But...
Th
C++
Coder100 I FOUND IT!
This is a super bad mistake, if the memory was allocated somewhere else, you would get a nice little segmentation fault.
image
You are declaring sum inside this scope. This means the outside sum
image
will not be affected. Just remove the int type so it goes to assignment instead of declaration.2 years ago
Coder100 well I just want to say you should make these numbers floats or else 3 / 2 will give you some weird answers.2 years ago
RYANTADIPARTHI Solution
You might want to use a switch case for this. Switch cases are better for this sort of thing. Try this code:
#include
using namespace std;
main()
{
char op;
float num1, num2;
cin >> op;
cin >> num1 >> num2;
switch (op) {
case '+':
cout << num1 + num2;
break;
case '-':
cout << num1 - num2;
break;
case '*':
cout << num1 * num2;
break;
case '/':
2 years ago
Ok so I decided to learn C++ so I decided to make a simple calculator app, but it thinks every single equation known to man is 4,200,233. So why does
C++
ObiVibKenobi Uhhh welp I don’t know C++ but do this in the ASK section. If I knew C++ I would help :(2 years ago
Quack!
The new hip search engine!
Big thanks to @robowolf for the Idea
Here's a cool search engine I made! I got the idea from @robowolf and pumped
Python
So, for a project i'm doing, I decided to use Repl.it database for my project, but I don't really get what's going on. I looked at the documentation,
Coder100 The db is quite simple, so first, we import it:
from replit import db
This db is a module. You can treat it as a magical dict that saves, but in the background it's actually a class.
Here is an example to motivate it
from replit import db
name = input("what is your username? ")
text = input("enter some text: ")
db[name] = text
for key in db:
print("%s said %s" % (key, db[name]))
`2 years ago
Hello! So, for a project i'm working on in python, something requires some sort of permanent server type thing where people could input data and store
RayhanADev Heylo @jort57
Have you tried ReplDB. I think that it might be what you’re looking for (and it’s really easy to use!). Try it out and tell me how it goes!2 years ago
Hi! I'm a (very) beginner at HTML, CSS, and JS. I have pretty much no knowledge of using JS with HTML other than using alert(). And I was thinking of
Coder100 Sure, so your html looks like:
And your js:
let messages = [ "Click that check mark!", "100% JS!", "50% Faster!", "Cave update!", "Sorry I don't play minecraft what even goes on in here?" ];
document.getElementById("splash-text").innerHTML = messages[Math.floor(Math.random() * messages.length)];
Wow... There's a lot of things going on. Make sure you understand all of them! Here are some links:
Arrays ([1, 2, 3, 4])
Math.random and Math.floor
document.getElementById2 years ago
RYANTADIPARTHI Sure, use the Math.random() in your javascript.
Math.floor((Math.random() * 10) + 1); // gets a random between 1, and 10
`2 years ago
SixBeeps Nah man, random is impossible.
Just kidding lol. Take a look at the random() function, which returns a random number between 0 and 1. If you multiply it by 3 then floor it, you'll get a number between 0 and 2 inclusive.2 years ago
Anatidae will be an operating system that will be cool for doing stuff. To start off this operating system, I am first creating a terminal for a custo
Python
MocaCDeveloper Lol:
Anatidae will be an operating system that will be cool for doing stuff.
That is classic, "cool for doing stuff".
Dude I am like balling my eyes out right now. That is - oh my god dude. I am sorry that is just hilarious to me I don't know why!!!
P.S:
A OS requires more than just having a shell and apps. If you can easily write up a simple "OS" app in Python, odds are, it isn't an OS.
An OS shell ties in with the kernel..in your case, you have no kernel and your shell is just some input ou2 years ago