Posts
Pinned
Rules for Posting - Read me!
Some rules and guidelines to keep in mind as you share your great work on our boards: 1 - Be kind and courteous to others 2 - Make sure that any feedback you provide is constructive. 3 - Outside links are allowed, but you must provide the source. Ideally, things that you post will have been created on Repl.it. 4 - Avoid posting overly promotional material - the focus is, and always will be, a programming, learning, and collaborative community. :) 5 - Don't spam / keep things SFW (Safe For Work). We may revoke your access to these boards if you are found to be in violation of any of these rules. Feel free to ask clarifying questions. Last updated 7/10/18 12:09 PST
35
posted to Share by timmy_i_chen (541) 8 months ago
Pinned
Artificial Intelligence Competition Results
# Artificial Intelligence Competition Results ![AI Bot](https://storage.googleapis.com/replit/images/1548442511309_416dbf2cf36092dee7da99a742661cc7.jpe) The [Artificial Intelligence Competition](https://repl.it/talk/challenge/Artificial-Intelligence-Competition/10058) has officially come to an end! For this competition, we asked users to build a bot using machine learning to perform various tasks. They could choose themselves what they wanted to build, as long as the program was able to do something on its own, or demonstrate any level of intelligence. Artificial Intelligence has always been a very popular subject among repl.it users, which is why we decided to dedicate an entire competition to it! The results exceeded our expectations: we've received an enormous amount (400+ in total!) repls from both existing and new repl.it users from all levels! Their submitted bots could perform all sorts of tasks, whether it was chess, a chatbot, or even a "doctor" to recognize your symptoms: the bots could help us with many things! It was exciting to see what the possibilities with AI are and how creative you can get with machine learning, no matter which language. Although we've received many extremely impressive bots, there can only be 3 winners! The winners were chosen based on the amount of votes by our users and the staff. --- ## Winners **First Place**: Congratulations @PixelBitez, you're the winner of this months's competition and receive a $100 Amazon Giftcard! @PixelBitez's [Dragon Eye RPG](https://repl.it/talk/challenge/Dragon-Eye-RPG/10209) is a game that generates a story and determines enemy moves based on the decisions the user has made. Make sure to check it out! **Second Place**: Amazing work @ArpanDhatt! You definitely deserve to come in second place with your [Wikigoogler AI](https://repl.it/talk/challenge/Wikigoogler-Question-Answering-Bot/10477) and receive a $50 Amazon Giftcard! Ask this bot any question you like, and it tries to find which answer it thinks is the most correct out of the choices you give it! If only this worked for figuring out where to eat.. **Third Place** : Well done @LucHutton, you receive the $25 Amazon Giftcard! His impressive [Connect 4 AI](https://repl.it/talk/challenge/Connect-4-AI/10140) was built using HTML, CSS and JavaScript! It's definitely not easy to win from this AI, so try it out and see if you can beat it! --- Some impressive bots unfortunately didn't make the top 3, however they definitely deserve some attention: - [Ultimate AI](https://repl.it/talk/challenge/Ultimate-AI/10334) by @PCL learns how to answer questions based on your previous answers! - [Bob](https://repl.it/talk/challenge/Bob/10106) by @Casidar is an interactive AI that can perform many tasks. Whether you want to play a game, want to hear a joke, or need to calculate something: Bob can help you out! - The [Sketch Identifier](https://repl.it/talk/challenge/Bob/10106) bot by @ArpanDhatt is basically the teammate everyone wants while playing Pictionary. It uses Tensorflow to guess what you've drawn and shows the different possibilities in a chart! Show your creative side and see if this AI can guess what you've drawn! - [Student Bot](https://repl.it/talk/challenge/Teach-StudentBot-how-to-write-An-AI-that-can-write-stories/10266) by @derulan can write stories using a predictive text algorithm after you've given it some text to train! - [Poe](https://repl.it/talk/challenge/Poe-The-Autonomous-Poet-Major-UI-UpdateCan-now-write-Haikus/10556) by @joshwood is a true poet! Train Poe, and it can generate sonnets or haikus on any subject you like. - [Scavenger Hunt](https://repl.it/talk/challenge/male-A-scavenger-hunt-with-image-classification/10185) by @jajoosam is the perfect way for programmers to finally leave their computers and start running through the house! You have to fetch the objects it tells you to get, and uses ml5 to recognize whether you've gotten the correct object. --- If you weren't one of the lucky winners, don't worry! There will be many more competitions in the future on various subjects, and hopefully everyone can learn from the feedback you get on your repl. We really hope to see your submission on our next competition! --- ## Feedback Did you enjoy this competition? Do you have feedback for us on how to make it better next time? We would really appreciate your feedback, and would love to see what you think of our competitions [here](https://repl.it/feedback). Thank you so much!
22
posted to Challenge by lydiahallie (20) 8 days ago
1
int() function broken?
I have an input that I turn into an integer for some math stuff, but when I put in a decimal, it comes out with an error: ValueError: Invalid literal for int() with base 10: '1.75'
4
posted to Ask by johnj (31) 2 hours ago
2
test
this is a test
8
posted to Ask by amasad (779) 2 hours ago
1
Enjoy MATLAB for FREE
Subject yourself to a pretty ~~terrible~~ great programming language. Uncomment "#example.o", and edit the file "example.o" to make your own scripts.
1
posted to Share by a5rocks (37) 3 hours ago
0
Javascript assistance please....
Hi, I am studying to be a Software Developer. Working on a work project which i need assistance with Javascript. I am trying to Develop Software program for testing Air Pressure. I need to be able to Enter a pressure reading eg. 0.5bar... into a <table> <td> and create a 'var' or 'function' to tell me that this is correct and enter the correct statement into another <td>. There will be a tolerance for these pressures. reading will have to be between 0.4bar-1.0bar. So result should state 'true' or 'false'. Hope this makes sense... If anyone could help it would be absolutely great... Thank you very much, Mark
6
posted to Ask by MarcoKirwan (0) 4 hours ago
1
Native Browser Javascript
I can't create a native browser javascript repl. When I create a repl by selecting JS it creates repl by node.js where I can't use like a browser console. But I have seen someone can create repl by native browser javascript. So how can i enable that?
4
posted to Ask by rrifat (0) 4 hours ago
1
using #class for beginners and added if elif else
for beginners
0
posted to Share by SumitHalder (0) 6 hours ago
1
Creating Graphics in Python-2
i want you to do it better
1
posted to Share by AliciaHenderson (0) 6 hours ago
2
What
what
2
posted to Share by SeungWhoiKim (1) 7 hours ago
4
Link extendus
Extendus link
6
posted to Share by mrsprinkletoes (4) 7 hours ago
2
String - mIxEd cAsE
Ok, so I found another issue with my code. I was testing it with different words and this happened: eNvIrONMeNt It's supposed to look like this: eNvIrOnMeNt Any ideas as to how I can fix this? https://repl.it/@20rduncan/031-Further-For-Loop-Practice-7-mIxEd-CaSe
2
posted to Ask by 20rduncan (1) 7 hours ago
1
Clear Console in LUA
Is there a way to clear the console in lua? In my projects the console gets to crowded.
2
posted to Ask by AdobeZev (0) 9 hours ago
5
Hosting discord.py bots with repl.it
# Hosting [discord.py](http://discordpy.readthedocs.io/en/latest/) bots on [repl.it](https://repl.it/) *This tutorial shows you how you can host your **discord.py** bots on [repl.it](https://repl.it/).* *Before you start, you should already have a working bot. Also, this really doesn't matter if you're using [discord.py async](https://discordpy.readthedocs.io/en/async/) or [discord.py rewrite](https://discordpy.readthedocs.io/en/rewrite/). Works like a charm for both!* *Just to ease things, we'll be using the end product of [this tutorial](https://repl.it/talk/learn/Discordpy-Rewrite-Tutorial-using-commands-extension/10690).* ------ ### What we'll be doing? 1. *Creating a web server.* 2. *Using [uptimerobot](https://uptimerobot.com) to ping our bot every 30 minutes.* *We do this because our repl goes offline after 1 hour of inactivity. So we keep pinging the repl every 30 minutes, to avoid it being idle for one hour.* # Step 1: The requirements.txt file. Once you have your bot ready for hosting create a new file named `requirements.txt` in the root directory of your [python repl](https://repl.it/languages/python3). Open it up, the `requirements.txt` file holds all your project dependencies. Make sure to add the appropriate package names for the packages you're already using. A sample file for basic bots are given below: - ------ ``` git+https://github.com/Rapptz/[email protected]#egg=discord.py[voice] ``` `requirements.txt` for a discord.py rewrite bot. ------ ``` discord.py ``` `requirements.txt` for a discord.py async bot. ------ Now that you have the basic requirements ready, add one more requirement i.e. `flask`. Making your `requirements.txt` something like: - ``` git+https://github.com/Rapptz/[email protected]#egg=discord.py[voice] flask ``` **Note :** *I am sticking to discord.py rewrite bot, but it really doesn't matter again.* ------ [flask](http://flask.pocoo.org/) is a python module for handling [http requests](https://www.tutorialspoint.com/http/http_requests.htm). ------ # Step 2: Setting up a server Setting up a server using Flask is very easy. But to keep things simple and your bot's file clean, we'll make a server in a new file and name it `keep_alive.py` since that is what most people like to call the file that helps keep their bot alive. Open up the `keep_alive.py` file and import `Flask` also import `Thread` you can learn more about Threads [here](https://docs.python.org/3/library/threading.html). ```python from flask import Flask from threading import Thread ``` We didn't have to add threading to our requirements since it comes with python. Next, create the actual server. ```python app = Flask('') ``` Easy, isn't it? But it's not over just yet. Next, we add a route. A route is basically what handles http requests. Without a route the existence of our server does nothing. So add the following code ```python @app.route('/') def main(): return "Your bot is alive!" ``` `@app.route()` is a decorator which defines a route. `'/'` is the default route or the homepage of our server. The `main` function is called whenever a user makes a request to the `'/'` route which basically returns whatever has to displayed on the webpage, here we simply send the string `Your bot is alive` to keep things simple. Now that our server is ready, we need to make sure that it runs and http requests can be made to it. ```python def run(): app.run(host="0.0.0.0", port=8080) ``` You can basically put any 4 digit number in port which is not already in use. The defaults for python is `8080` and that's what we'll stick to. Finally, we make a function that we can call to prepare our server and allow it to be pinged. ```python def keep_alive(): server = Thread(target=run) server.start() ``` And we're basically done with our `keep_alive.py` file. ------ # Step 3: Combining the server and bot. Now that we're done making both the bot and the server, we need to combine the two. That is easy too, open up the `main.py` file ( or whatever file has the `discord_client.run(bot_token)` function in it ) and add the following line at the top: - ```python import keep_alive ``` This will import the keep_alive file in your bot's main file. Now just before starting the bot, at the bottom of the same file write the following code: - ```python keep_alive.keep_alive() ``` This will run the `keep_alive()` function that we defined in the `keep_alive.py` file earlier. And now your server is ready too! Run the bot, you should see something like this: - ![Keep Alive](https://i.imgur.com/XA3cvpK.png) Notice that small window saying `Your bot is alive!` if you see it, you successfully created the server! Only the last step remains! Before you go into the last step, make sure to copy the `repl.co` link you see in that small window's address bar. (`https://discordpy-rewrite.thedrone7.repl.co` in the picture, it will be referred to as the `server link` in the rest of the tutorial) And in case you don't see it, go through this tutorial again and make sure you didn't miss something, also if it retains, don't hesitate to comment and tell me. ------ # Step 4: Setting up [uptimerobot](https://uptimerobot.com/) First of all visit https://uptimerobot.com/ and register an account just like any other website. (It is free of course) Next, Once, you're logged in, 1. Click on the `New Monitor` button. ![Imgur](https://i.imgur.com/c8WCZab.png) 2. Next, choose the `HTTP(S)` Monitor Type. Give it a friendly name of your choice ( naming it after your bot is recommended ) Paste your `server link` in the `URL/IP` field. Set the Monitoring Interval to anything between 5 minutes to 45 minutes. ( 30 minutes is recommended) Optionally, Select yourself as one of the `"Alert Contacts To Notify"` so you are notified via e-mail whenever your bot goes offline. Finally making it look something like this: - ![Uptimerobot final monitor](https://i.imgur.com/yzRdE2K.png) 3. Click on `Create Monitor` and you're good to go! ------ Now you're bot will stay online for as long as it can. *( Repl it being just another host, won't be able to host it 24/7 so it **will** have a downtime of a few minutes within every 24 hours.)* And you're done! > Please upvote if you found this useful! > > Also, comment down below if there's something you would like to share or ask. And finally, thanks for reading it!
2
posted to Learn by TheDrone7 (29) 10 hours ago
1
Week 2- Q1
Average of student marks.
1
posted to Share by it15226556 (0) 12 hours ago
1
Can I run new Java 11?
or at least java10, I would love to test the news features from new versions os java.
0
posted to Ask by LuisPereira3 (0) 13 hours ago
1
Node.js: Signature verification (PS256) succeeds in Node.js but fails in jwt.io debugger
https://stackoverflow.com/posts/54806097
0
posted to Ask by SamArtuso (0) 13 hours ago
0
I want to use clear screen function in my c++ code on repl
As repl provides ubuntu compiler for c++, I don't know how to use clear screen function and which header file will be used for that function. kindly guide me.
5
posted to Ask by RishuMishra (0) 14 hours ago
1
HTML won't run
I'm trying to correct my students' work in HTML, but none of them will run - it says replbox.repl.it refused to connect. I'm using google chrome, if that is relevant. ![image](https://storage.googleapis.com/replit/images/1550749104112_10e9825d99032d7b8b3c31b054568b6a.pn) ![image](https://storage.googleapis.com/replit/images/1550749104738_10e9825d99032d7b8b3c31b054568b6a.pn)
1
posted to Ask by emmabarton (0) 15 hours ago
4
Don't ever lose your data again with jsonstore.io [ JS Edition ]
Inspired from @leon332157 's library for jsonstore.io in python, here is one for JavaScript. This library was built to allow people to easily make transactions with [jsonstore.io](https://www.jsonstore.io) in node.js ## Installation Use `npm i async-jsonstore-io` in your preferred terminal / command prompt or just install it from the [repl.it](https://repl.it) packages tab. Include it in your app using ```javascript const JsonStoreClient = require('async-jsonstore-io') ``` ------ Here's a link to the [github repository](https://github.com/TheDrone7/jsonstore-io). ( It will be greatly appreciated if you star it too. ) [Official npmjs.com page](https://www.npmjs.com/package/async-jsonstore-io) ( also contains the docs for more help ) [Here's an example repl that shows how it all works!](https://repl.it/@TheDrone7/KindRecursiveSyndrome) Also make sure to check out [jsonstore.io](https://www.jsonstore.io) to see what it is if you don't already know. ------
2
posted to Share by TheDrone7 (29) 15 hours ago
1
Open AI GPT-2 language model
This is a language model recently released by OpenAI. I got it to run on repl.it and been having some fun with it. It runs slow, especially if you're not on the Hacker plan, but basically you give it a prompt and it makes a bunch of lies. Example: `Model prompt >>> henlo friend` > henlo friend, grandmother and former girlfriend. There may not have been a physical collision. Whether she was knocked about or hit by a car was not made clear. A second strike would not have banned drivers of his car from the intersection, said Frank Bryn Lehmann, San Diego sidewalk planner and welder. In police hailry, a railroad has two sets of rails. Carstriker trains have the only rails at the corner of Main and Liberty, and Central Valley Street is crenellated by LED trusses. Boeing does not use waterfront trusses because dolphins head east. The actions described in the papers shed light on whether boats could sway cities to minimize collisions between motorists and passing cars.
1
posted to Share by amasad (779) 16 hours ago
1
LF1.6_S13_ms167
math library
0
posted to Share by kwongliik (3) 20 hours ago
1
Simple Calculator
I am Noob, this is my first Repl
1
posted to Share by RoyalGaming (0) 20 hours ago
1
JS Assignment 4: Control Flow Continued
Is anyone doing LambdaSchool JavaScript pretest because I have worked for 40 minutes and I can get question 3 from assignment 4 correct.
0
posted to Ask by BrianTran2 (0) 20 hours ago
1
LF1.6_S10_ms166
maximum value
0
posted to Share by kwongliik (3) 20 hours ago
1
LF1.6_S5_ms165
Grading system
0
posted to Share by kwongliik (3) 21 hours ago
1
Can't run my codes
I can write codes but I can not run them the loading screen won't go away a verification image comes up when I log in but after completing the verification images it says "error" contact support
2
posted to Ask by juanjrz10 (0) 24 hours ago
1
2darrayfun
This little program is to help students learn to use 2d lists by testing their ability to find items in a 2d list. You simply type in the command to print out the correct number. Tried to use simple code. I hope you enjoy it! I've tried not to use anything fancy, despite the severe temptation to use regex...
0
posted to Learn by jamesabela (0) 1 day ago
2
my first turtle graphics
i made a circle
3
posted to Share by _IMAGIRAFFE_ (1) 1 day ago
1
Hikarthelight
it just is
0
posted to Share by Hikarithelight (0) 1 day ago
Load more