top contributors since
Coder100
Bookie0
RYANTADIPARTHI
SixBeeps
DynamicSquid
mat1
CodingCactus
PYer
BobTheTomatoPie
InvisibleOne
view leaderboard →
h
5 months ago
Repl Talk Rules and Guidelines [README]Rules Welcome! The Replit community is a place for users to share code, ask questions, and discuss coding-related subjects. We're committed to makin
Announcements
39 comments
Latest comments
IGamer1233 months ago
Question: Can you use repl if you are underage(below 13) and just not post or share your codes
StringentDev4 months ago
@TheDrone7 Some details of the TOS are a bit vague: > [DO NOT ] Use the Service to "mine" bitcoins and other cryptocurrencies; if you: create your own crypto currency create a miner for it make it use little resources But you also: Redirect users to set up their miner on a hosting platform like Vercel or locally Only use repl.it for the project when it is at a small scale like testing and education Give a cut to any repl.it mods and employees (because why not?) Would it be allowed to create
view all ›
2 years ago
🐶Introduce yourself! 🐶Hi everyone! waving Use this space to share anything you want to share with our community - your name, where you're from, what you program in, what
Announcements
58250 comments
Latest comments
BleedingEdge13 days ago
@KabirJaipal
StephenChen115 days ago
HTML
Ethan_Cahill5 days ago
Just a person with an interest in stuff :D
view all ›
h
5 days ago
💥 ANNOUNCING KAJAM! 💥Welcome to KaJam! This is a codejam/hackathon being organized and hosted by replit to celebrate Kaboom.js - A JavaScript game programming library that
Announcements
56 comments
Latest comments
FuriousTsunami3 hours ago
@TheDrone7 What are the terms?
schoolonlinebee12 hours ago
@TheDrone7 how would you give money through what?
potatojs1 day ago
can i use a game engine i created? is it allowed to start working on a framework that i'll use for my game?
view all ›
h
25 days ago
Monthly Repls - August 2021Hiya replers! It is yet again time for MONTHLY REPLS - AUGUST 2021 EDITION! For those who don't know what these are, these are some of my favorite po
Announcements
32 comments
Latest comments
Ov3R10rd23 days ago
Bloody Tanks!!!!!
GhostKing00723 days ago
No offense, but I don't see why the Collatz Conjecture program is featured (epicman's post). It's really easy to make, and if you actually check my repls you will see i have made it as well. I'm just saying, it's kinda too simple and easy to make to be a featured repl. Again, no offense to the creator.
view all ›
h
5 days ago
Weekly Challenge #12Good Morning/Afternoon/Evening/Night to all amazing replers! 3 weeks ago, we started weekly challenges 3rd month with the challenges focused on math!
Announcements
20 comments
Latest comments
SpringBonnieBoi2 days ago
nyeeeh i love spagetti eh eh like my papyrus impression
GhostKing0074 days ago
H is so self obsessed he made the weekly topic 'i'. Narcissism at its finest, folks. Also get ready to change your name to PoopAtMath @Nayoar
MrVoo4 days ago
Is it just a n y t h i n g related to i?
view all ›
6 months ago
Crash Royale Don't question. Just play. yeah
ShareSwiftSwift
62 comments
Latest comments
LucasHalls1 month ago
Caleb i'm commenting so you'll get an email about this. I made a new repl in our apple coding folder. Go to it
LucasHalls4 months ago
crash Royale is my favorite game
LucasHalls5 months ago
i like this game
view all ›
1 year ago
A Crash Course on SwiftSwift is a powerful and intuitive programming language for macOS, iOS, watchOS, tvOS and beyond. Apple It surprised me when I saw that no one had do
TutorialsSwiftSwift
29 comments
Latest comments
Psianturi1 year ago
Thank you..
anjorge1 year ago
Yeah nice!
A few thoughts: > Similar to Rust, Swift was made to have high usability and performance (similar to Rust) You mention "similar to Rust" twice here lol. > Similar to C/C++, you declare variables using the var keyword C nor C++ use var for declaring variables, but languages like JavaScript and Dart do. > Although the ! is not required, if you don't use it, the compiler will throw an error at you. Yes, this is because readLine returns an optional String type. If the user didn't enter anything o
view all ›
11 months ago
🍕 Pizza 🍕 Machine v1.5Welcome to my first project on repl.it, Pizza Machine! Since everybody loves to eat pizza, (right?), I made this project. > random person: i hate pizz
ShareSwiftSwift
23 comments
Latest comments
FloCal3511 months ago
Make the A in pizza a little slice w/ toppings or something :)
RiazuMacroni11 months ago
I will say that pineapple on pizza is the best, contrary to popular opinion which says otherwise. I don't want to argue which is good for others, but i like me a pizza with some pineapple.
ThisUserTaken11 months ago
extra cheese? thats barely anything! we need EXTRA EXTRA CHEESE bell peppers? they actually are pretty gud.
view all ›
1 year ago
π in SwiftI think I'm pretty much doing pi approximations in every language now, so, here it is in Swift! By the way, compare this to Kotlin and see why Kotlin
ShareSwiftSwift
31 comments
Latest comments
DigitCommander1 year ago
Awesome
Jakman1 year ago
Cool. I dont think you needed a class tho. Is swift a language where everything is done in a class in that case?
HahaYes1 year ago
Ah, stealing my thunder I see
view all ›
h
1 year ago
Weather App (iOS)I made a weather app For those who don't know, yes, I do know swift. There is nothing to do with it unless you add view controllers. I basically want
ShareSwiftSwift
13 comments
Latest comments
Just a heads-up that Apple libraries like UIKit and stuff don't work on repl.it (because repl.it uses linux, not mac os)
TheForArkLD1 year ago
I want use ℃, but cool!
intriguing-1 year ago
Amazing! What other apps are you going to make?
view all ›
2 years ago
Haiku SimulatorThis is just something I made to escape the plague of boredom Any criticism/comments/ ideas will be looked at and appreciated :D (REVAMPED: MORE OPTIO
ShareSwiftSwift
14 comments
Latest comments
PhoenixSaid2 years ago
Man that's deep... The world was cruel I don't have any regrets Congrats on nothing!
LordPancake2 years ago
The haiku sounds like something that could happen. This is not okay Who knew people would act weird I was promised peace
sErn2 years ago
Hey, I would recommend using a switch-case statement to shorten up this code by a lot. What a switch-case statement does is take an argument, in this case the users' input, and check if it equals a certain value. This removes the need to write an if statement for every number. You can do this by writing this: switch userNumber { case 1: print("This is not okay") case 2: print("There once was a boy") default: break } This statement takes userNumber as the argument, then uses case to check if it e
view all ›
2 years ago
can you print out a physical copy of your codeI need to print out a paper copy of my code, is there a way for me to do that?
AskSwiftSwift
2 comments
Latest comments
LittleNomster2 years ago
i just click the text, hit ctrl+a(selects everything), then copy it(ctrl+c), then paste(ctrl+v) to microsoft word
[deleted]
2 years ago
write it down? that or take a screenshot, and print that out
view all ›
6 months ago
Learning SwiftHello guys, I thought while I was learning swift, I should share with others! I will be constantly updating this tutorial, and please feel free to ask
TutorialsSwiftSwift
comment
h
11 months ago
I made this repl Swift-lySwiftly Hey world, i made this repl to show how bad the syntax for making a simple program in Swift. I am mad at the name parameters because i alway
ShareSwiftSwift
comment
1 year ago
Dudas Sesión 1ioslabimg Pueden ocupar este espacio para cualquier duda que tengan de la Sesión 1 del curso Aprende a Programar con Swift. Si alguien tiene la respue
ShareSwiftSwift
2 comments
Latest comments
JessBadillo1 year ago
Tengo una duda con el manual, contestamos las preguntas que vienen, las subimos a un repositorio y compartimos la liga el la primer tarea?
view all ›
1 year ago
how to invitehow to invite someone in the talk
AskSwiftSwift
1 comment
Latest comments
xolyon1 year ago
you mean multiplayer? if so to the left of the run button there is a invite button , press that and type in the username of the person you wish to invite and you should be god to go
view all ›
2 years ago
need helppleas help me out this task I can not understand this.
AskSwiftSwift
10 comments
Latest comments
axy19766 months ago
try This Code instead ! https://replit.com/@axy1976/TryLeapYear#main.swift if aYear%4 == 0 { print("YES") } else { print("no") }
DJWang2 years ago
What this is saying is that aYear is not an integer and needs to be one.
MrEconomical2 years ago
what have you tried so far?
view all ›
1 year ago
Learn how to make a calculator app which computes 2 numbers using swift!Hello, and welcome to my Calculator app repel. Here you can look at this code and try to improve it and make it better.
ShareSwiftSwift
3 comments
Latest comments
Harjaslego1 year ago
Thanks for telling me about the error, I fixed it
hg04281 year ago
main.swift:1:1: error: expression type 'WritableKeyPath' is ambiguous without more context \print(" Welcome to Calcuate2# app! Please enter a number to start this program!") ^compiler exit status
[deleted]
1 year ago
Screen Shot 2020-07-24 at 1.36.29 PM
view all ›
1 year ago
how can I tell the compiler a number is odd or even ?Write a conditional statement that evaluates whether the value for a number property is odd or even. If the number is even, print "The number is even
AskSwiftSwift
1 comment
Latest comments
ronniegertman1 year ago
in many langueges use the following steps: for example java: int num; if (num%2==0) System.out.println("even"); else System.out.println("odd");
view all ›
answered
1 year ago
how to take user input in the form of an integerPlease help me. This is so irritating like i just want to take two integers and add them. Instead, it takes it in the form of a string and just concat
AskSwiftSwift
9 comments
Latest comments
PattanAhmed1 year ago
@AaronPhilip Hi, It's easy... You just have to convert it into Int data type Here is your code with explanation:- // Taking input of first number and converting it into a Int Data Type print("Enter first number: ") var number = readLine()! var converting = Int(number) ?? 0 // Taking input of second number and converting it into a Int Data Type print("Enter second number: ") var number1 = readLine()! var converting1 = Int(number1) ?? 0 // Adding the both inputs var result = converting + conver
Coder1001 year ago
Hello, to do this, you will have to use the Int class: print("Enter a number") var a = readLine()! var aint = Int(a) ?? 0 print("Enter another number") var b = readLine()! var bint = Int(b) ?? 0 var ans = aint + bint print(ans) Note the ??. This is because if the user input was a, you wouldn't be able to convert it to a number and the variable would become null iirc.
GoodCoderBadBoy1 year ago
I've never used swift before, but looking things up, you may need to convert the readline() output into an int. I may be totally and utterly wrong though. print("Enter a number") var a=Int(readLine())! print("Enter another number") var b=Int(readLine())! var ans=a+b print(ans) `
view all ›
6 months ago
Hight CalculatorThis handy tool will help you to determine your height in 3 different ways.
ShareSwiftSwift
2 comments
Latest comments
LucasHalls3 months ago
I am commenting on this post just to annoy you when you see it in your email inbox. lol. mek
LucasHalls5 months ago
I love how accurate this is
view all ›
h
2 years ago
Quiz/Triva GameThis is a repost of my Quiz repl. I added some improvements that people thought that I should add from my first post. Some of these are: More Questio
ShareSwiftSwift
comment
1 year ago
Repl basic layoutBy accident I have hit a wrong key or swiped my mouse but my Repl desktop is a mess. I cannot get it back to the Repl default layout. Because of this
AskSwiftSwift
20 comments
Latest comments
rodagr1 year ago
Hi everybody. Thank you for your solutions. I know how to use the settings. I had not stated my problem clear enough. When I started, I had 3 separate areas on my work area. On the right was a work area that showed the data of the challenge that my tutor had set. On the left the area was spilt horizontally into two areas, white at the top, black at the bottom. Basically, I have lost the area on the right that showed the data for the challenge. Unfortunately, the course I am on as been running fo
PattanAhmed1 year ago
@rodagr Hi Rodr, Maybe it's looking like this there:- 01 Don't worry. Here is the step-by-step tutorial on how to change your layout:- Click that Settings button 01 You will see a Layout Option 02 Click that small arrow after that. 01 Change it to whatever you want 02 That's it Thanks! Hope this helps
CodeLongAndPros1 year ago
I’m moving this to ask.
view all ›
6 months ago
Where On EarthThis code tells you whether a place is in the Northern Hemisphere or Southern Hemisphere. Remember that the place is writen in latitude and longitude
ShareSwiftSwift
1 comment
Latest comments
JacobMcPherson16 months ago
cool
view all ›
10 months ago
Slots and Heads or Tails | Part One of a Larger ProjectWelcome to Gambling Bot Attempt Two This is my second attempt at creating a Gambling bot in Swift. Swift, you say? SWIFT? did he really say swift n
ShareSwiftSwift
4 comments
Latest comments
[deleted]
10 months ago
Nice game!!! Definitely deserves an upvote!
Gudetamwa10 months ago
IF THERE ARE ANY ISSUES PLEASE LET ME KNOW
view all ›
1 year ago
ArraysInstructions from your teacher: Given the array of numbers. Create another array called computedNumbers. computedNumbers should multiply each element
ShareSwiftSwift
6 comments
Latest comments
papacoding1 year ago
Just starting on Swift. and stuck on this exercice....About to give it up all. Please help I am suffering 😰
view all ›
6 months ago
French Verb Future and Conditional ConjugatorConjugates any verb in the future or present tense. May not have every single irregular verb. You don't even need a real verb, as long as it ends with
ShareSwiftSwift
comment
7 months ago
SampleCreate_SongListThis is a sample Create Task Project for the AP Computer Science Principles exa,.
ShareSwiftSwift
comment
1 year ago
Dragonia RepostI lost the original XD. Dragonia is a medieval text-based game. You (and only you) cannot die. The game ends of you are knocked unconscious or jailed.
ShareSwiftSwift
5 comments
Latest comments
DynamicSquid1 year ago
You can just edit your original post to contain the repl
TobyHess1 year ago
Please ignore the code if you are playing, as it gives spoilers. Thanks!
view all ›
h
1 year ago
iOS TaskManagerI hit again with another project im discontinuing. TaskManager I feel like i have been inactive on repl, and thus, i should post stuff here on repl.
ShareSwiftSwift
2 comments
Latest comments
Theboys6191 year ago
Cool
view all ›
2 years ago
iam unable to solve it please help me outplease help me to understand this challenge. How to solve this
AskSwiftSwift
3 comments
Latest comments
SixBeeps2 years ago
Your functions need both parameters and return types in their declarations. Instead of func add() { ... } you need to do something like func add(n1: Int, n2: Int) -> Int { ... } `
view all ›
answered
2 years ago
What am I doing wrong?I follow the instructions from the video on how to type in code in swift for something simple as stating my name, in a string concatenate. Please some
AskSwiftSwift
2 comments
Latest comments
SixBeeps2 years ago
String concatenation is just combining strings. You do it by using the + operator on two strings. For example, "Hello, " + "Sarah" results in the string "Hello, Sarah".
view all ›
1 year ago
DailyPay_ArrayChallenge