00
Days
00
Hours
00
Mins
00
Secs
Artificial Intelligence Challenge / Ends February 11
🎁 Prizes: $100 / $50 / $25 Amazon Gift Cards

AI Bot Challenge

Posts
Pinned
Artificial Intelligence Competition
# Artificial Intelligence Competition ![BOT3](https://storage.googleapis.com/replit/images/1548061024894_d082e1650fb720bf7dfe4f81e7c39008.jpe) # General Competition Information This month's competition is all about artificial intelligence! Whether it's a chatbot, an assistant, a game, you name it: get creative with the possibilities of AI and build anything you like! So what do we mean with AI exactly? In this competition, your program must be able to do something on its own / demonstrate some level (any level) of intelligence. Whether you decide to achieve that by writing simple if-statements, or challenge yourself by using NLP or NLTK, it's all up to you! As long as it's a working bot that shows some kind of intelligence. You can decide what the bot does, so you can be as creative as you want (as long as it's appropriate). If you need inspiration, [here's an example that recognizes drawn numbers using neural networks](https://repl.it/@IEATPYTHON/NeuralNetwork). More examples: - [Play connect 4 with AI](https://repl.it/@WyattGeorge/ConnectFour) - [OpenAI Gym's Cart Pole Problem](https://repl.it/@MikeShi42/CartPole) When you're happy with the result, submit it on the challenge board. **Competition starts**: Monday, Jan 21 12:01 PM UTC **Competition ends**: Monday, Feb 11 12:01 PM UTC # Prizes 3 winners will be selected based on the amount of votes given by users, and by judgment of the staff (whether it's creative, has a nice user experience, and so on). **First Place** : $100 Amazon Gift Card **Second Place**: $50 Amazon Gift Card **Third Place**: $25 Amazon Gift Card # Submission Criteria: In order to be considered, your bot: - Must be hosted on Repl.it - Must be friendly and appropriate
39
posted by lydiahallie (4) 5 days ago
▲
6
Dragon Eye RPG
This is an RPG made for the AI competition. The game is intelligent by generating a story and determining enemy moves. # About Dragon Eye is a terminal based RPG. It may not be a AAA game, but it does have one special thing about it. Since there is no story, the game is generated by an AI based on decisions you have made. ![image](https://storage.googleapis.com/replit/images/1548283686558_b0b3eca4ea6bbdf9a1dbf530af512550.pn) # Enemies You can fight a variety of enemy's in the game. Before combat the game generates your enemy to be close to your level and damage, that way every fight is fair, and a decent challenge. ``` class Enemy{ public int Level; public int Health; public string Race; public int Damage; public int Defense; } ``` # Items Items are essential to playing Dragon Eye, without them you would most likely be on a death loop. ``` class Item{ public string ItemType; public string ItemName; public int ItemLevel; public int Damage; public int Value; } ``` # Strategy The gameplay is based on strategically making decisions. You always have 3 options in combat, attack, defend, and use item. Using an item will heal you with an item, defend will use your defense to counter the enemies next attack, and attacking will use your attack and subtract that from the enemies health. ``` class Player{ public string Name; public int Level; public int Health; public string Race; public int Damage; public int GP; public int Defense; public int xp; public List<Item> Inventory = new List<Item>(); } ```
0
posted by PixelBitez (5) 4 hours ago
▲
1
(Python) Map Generator AI
Read the READ ME.txt before coding, theirs also an example file under Maps. Sometimes it won't work because that's when I am fixing it, updating it, broken from repl update, or you did something.
0
posted by Stanlyhalo (8) 7 hours ago
▲
12
🕵️‍♂️ A scavenger hunt with image classification 🖼️
hey hey hey hey hey I'm back with something I think y'all will find interesting! I built a game based on image classification - you have to get objects from around your house - whatever the app tells you to get, you fetch! ## [Play here](https://hunt.4ty2.fun?ref=repltalk) 🎮 Check out [this demo video](https://youtu.be/kdGipA-VDj4) I made 🎥 - I go over using the app, and the tools I used to make it! ![demo gif](https://storage.googleapis.com/replit/images/1548248878277_61c6e20eadf9da4da8e8967685a61f08.gi) ### How does this work? 4ty2 hunt has two main dependencies - [ml5](https://ml5js.org) and [p5](https://p5js.org) - p5 lets you do cool things with graphics (like getting the video stream from the webcam, super easily) - but ml5 is the real core of this app! ml5.js lets us run machine learning models, and train them as well, right in our browser. But the reason it exists is to make ML projects, like this mindblowingly simple 🤯 The whole of my game comes down to me writing about `150` lines of JS - that's it. ml5 allows me to pass the webcam's video stream as a parameter, and keeps telling me what it sees. I'm using the mobile-net model for this, which uses the [image-net](http://image-net.org/index) dataset - around 15 million labelled images. Besed on that huge chunk of data, this model predicts what it sees! ### Challenging you Image Net has 1000 different labels through which objects are classified - some of them include things like `Komodo Dragon`s, `Great White Shark`s, and `Ostrich`es - you know, things that can't be found in *most* homes 😛 So, I manually went through loads of the labels, trying to label things most of us could find. ![me going whaaaaaat?](https://storage.googleapis.com/replit/images/1548250013223_d4e633164513cafa87953e8e9e755ae1.pn) Clearly, I was a little sleep deprived - and I probably made some mistakes. Let me know if you find some weird labels - I'm @jajoosam on the Discord 💬 ### Easy machine learning with JS Machine Learning is pretty complex, but that doesn't mean making projects with it has to be too! I have gained a lot of appreciation for [ml5.js](https://ml5js.org) - it's an amazing way to integrate ML into your projects. I learnt all the tech behind making this project from [Dan Shiffman's videos on ml5 ](https://www.youtube.com/watch?v=jmznx0Q1fP0)- and I highly recommend you check them out if you found this interesting! He's a great, super energetic teacher 👨‍🏫 ![SelfassuredScrawnyKusimanse-small](https://storage.googleapis.com/replit/images/1548250591304_1f59b29dfc20b7f8c93d6323da1a4c72.gi) Before building this project, I followed the [first video](https://www.youtube.com/watch?v=yNkAuWz5lnY) of the series to build [this](https://ml5-mobilenet.jajoosam.repl.co) Super excited to hear what y'all think about this!
5
posted by jajoosam (335) 13 hours ago
▲
3
Stone paper scissor
A simple api that plays a single chance game
0
posted by AmeenShafeeq (3) 1 day ago
▲
3
This is my very first AI program, I hope you guys like it.
Guess a number from 1 through 10. You can change the range in the program if you would like, to make it more interesting.
2
posted by karthikkhatri (10) 1 day ago
▲
5
Emoji Recognition! 🦎 == Green Lizard
Can AIs look at emojis, and figure out what it is? I was quite skeptical. However the first thing I did was figure out what emojis I should use, like iOS ones or google. I deiced to get iOS emoji images, and while I prefer Android emojis, iOS tends to be the least cartoony. I downloaded the weights, which are simply put, numbers that are used to determine one result from another. After running the program, I was shocked at how well it actually worked! Not for all emojis, and it wasn't always on the dot, but every time you would think "Oh yeah, I can see why the AI might think that." Try it yourself, run it (wait for all the dependencies to install) and then paste an emoji not by doing CTRL+V, but right click the terminal and press paste. If you're on mobile then ignore this and just insert an emoji. Enjoy! # If you have issues installing the packages Please check back in a couple of days, It was working fine before I submitted it, so I'll try and fix it, sorry!
2
posted by 21natzil (339) 1 day ago
▲
3
A_Bot
Pls enjoy, I haven't been coding for long, but I hope I did well.
1
posted by SebastianCooke (4) 1 day ago
▲
5
Medical Chatbot
(There are only two conditions so far, asthma and influenza) To use it, you enter symptoms (keywords) and it iterates through the symptoms and outputs the most likely medical condition.
0
posted by mihirraov (4) 1 day ago
▲
11
Node.js Impossible Nims AI
This is a very simple and short AI, in total the AI is one line long. ``` else nimstot -= nimstot % 4 == 0 ? Math.ceil(Math.random() * 3) : nimstot % 4 ``` A tutorial and explanation for the rest of the code can be found here: https://repl.it/talk/learn/How-To-Make-A-1-Player-Nims-Game-Nodejs/7610 Good luck.
2
posted by bearbearmo (26) 2 days ago
▲
5
Higher or Lower Game
It's a simple bot that plays higher or lower with you! You have to try to win. At the start you have the option to be given instructions or not then just follow the instructions and play the game!
0
posted by chloe24603 (4) 2 days ago
▲
6
Line graphing bot
Just click 'run' and follow instructions to build your graph. First graph may take some time so jsut be patient. :) Not sure if this is an AI so comment if its not and don't forget to give an upvote if you find it useful!
0
posted by Joshua18 (18) 2 days ago
▲
4
helllo
kewkfmwlöefmw
2
posted by LinneaJonsson1 (4) 2 days ago
▲
16
🧠 Connect 4 AI
Just a simple but fast connect four AI made using HTML, CSS, JS. **How It Works:** 1) Each potential place the AI can place a counter is scored based on the amount of counters around that place and the length of the segments around it also. 2) The move above is also checked to make sure that by moving to that position that the AI doesn't cause the player to win, or for the AI to sacrifice a potentially good move, if this is true then the score of that move becomes 0. 3) If there is one distinct highest score, that one is chosen, else the AI just picks a random move from the highest scoring moves. **REMEMBER TO UPVOTE!** PLAY HERE: https://Connect-4-AI--luchutton.repl.co
10
posted by LucHutton (68) 2 days ago
▲
7
QUZANG series 1 bots
Run the only script given and it will give you a set of links to follow to visit the multiple real-time AIs I have constructed and integrated into discord bots. also have a nice day!
0
posted by QUZANG (6) 2 days ago
▲
9
Have fun with this simple ai game 💯💯
it's pretty self explanatory all you do is click run and do what it tells you to do.
0
posted by karthikkhatri (10) 2 days ago
▲
38
🤖 Hardit JR. (AI CHESS BOT)
## Inspirational Story... to make you think the bot is better than you already thought. 🏅The main reason I made this bot is so I had some competition to play against. I tried playing members of the repl community but they ~~were easy~~ have not developed there chess skills yet. This is the ♔ ~~best~~ I mean mediocre chess-bot. Many of you in the [repl discord server](https://discord.gg/XadDsju) may know that I am a ~~god~~ **good** at chess and I enjoy playing it. ![image](https://storage.googleapis.com/replit/images/1548120340556_4a3efe78b63a3c99fd20588f8f959116.pn) ![image](https://storage.googleapis.com/replit/images/1548120410739_de98ccad40a7f03201d0038b83fd2670.pn) ![image](https://storage.googleapis.com/replit/images/1548120477740_a5aa509350f2b1361ff73cddb45a3807.pn) Well today we have an automated version of me! HarditJR! HarditJR can play chess like me ~~but does not have the skill to beat me~~ _(ik I just insulted my AI)_ ## How to play ⚔️Try and battle the AI here ⚔️=> https://Chess--ieatpython.repl.co. Select the difficulty and press new-game to play ## AI explanation This AI has 4 levels(Random, Easy, Smart and Legend(which is rn too slow and broken)) and I am sure that it will beat you all(jk) Here is the way the **easy engine** works: * Evaluates all moves, returning a list of all possible moves, sorted by order of preference (best first), with the resulting game scores. * For each legal move... Make the move in memory, and grab the opponent's possible moves. * For each of the opponent's possible moves... Make the opponent's move in memory and evaluate the board. * If this is the best possible move for the opponent so far, note the fact. * Note the potential move's oppenent's best response score. * If this move is the best move so far, note the fact. * Sort possible moves in preferential order (best first). * Note all moves' evaluation scores. * Gets the computer's move, given the board and the computer's color (white or black). * Moves the piece The two-moves engine is much more complex and looks 4 moves into the future but is really slow. Here is a gif of the chess AI in action!: ![chess](https://storage.googleapis.com/replit/images/1548118662005_971b61db54db597c2f67a72163d8efe9.gi) ## Bugs and future improvements because the actual chess game has bugs `PS: There are some bugs with the mechanics of the chess game itself such as being able to castle in check and not having several stalemate rules included. There is also this weird bug which happens when you click on a piece during the AI's turn. It basically just thinks it is your turn and moves for you. Btw promoting a pawn is broken too but is being added. Also report any other bugs in the comment section` ```fix I will be finding a FIX for these bugs soon but I really have 0 idea on how to fix/make ``` ```fix the last two bugs ``` In terms of the AI it works fine and plays very well in terms of chess and follows the concept correct and well. The main problem is just the actually chess platform I made. ## Upvote blurb to make you upvote ```css Please leave an upvote if you think AI is cool or you thought this chess AI was cool! ``` ```css upvoting will make you better at chess ```
32
posted by IEATPYTHON (374) 2 days ago
▲
7
Pattern Finder
https://repl.it/@johnj/pattern-finder. Put in a sequence of characters, and it will try to find a pattern! (it can only do simple ones like 121212, where it is obvious, not 121314, where it is one, followed by an increasing number.) only sort of ai, but close enough! Note: it will only find repeating patterns.
0
posted by johnj (26) 2 days ago
▲
7
How Thick would you like your shape?- AIs' Drawings
# My program This program makes use of python with turtle, and does certain things in response to the user. Shapes have a lot of customisation within this project. I originally was messing around with shapes on python with turtle, when I realised this would be a great project to make: If the computer received the instruction to draw a certain amount of sides: it would. This is a very interesting concept applied to a basic thing in life which is actually quite useful. You can also switch off the AI and manually choose the shapes properties, which is obviously slower. This is one of the key applications of AI in the most basic of circumstances. I hope you enjoy the project! ## John_WardWard
1
posted by John_WardWard (110) 2 days ago
▲
10
Rock Paper scissors with neural network
Rock Paper scissors with a neural network for the computers move. Code on github https://github.com/qwertpi/rpsai and a walkthrough of the code on Medium https://medium.com/datadriveninvestor/making-your-first-neural-network-part-1-a683b80b93e3
2
posted by rorysharp (13) 2 days ago
▲
13
Rock Paper Scissors with Smart AI player
Please open it on repl.it itself at the top right, alot of stats will be shown like win rate, win streaks, and things like the % where u use "Rock" for example. ![stats_rps](https://storage.googleapis.com/replit/images/1548092605724_0b02826585c2af1dc1721033e9ad4a2c.pn) You will be asked to state the number of matches you want to play with the AI, after the [no. of matches] you could continue or quit if you wish. Pick "1" for Rock, "2" for Scissors and "3" for paper. Please give some feedback to my AI after experiencing it. Thanks and have fun! This is one of my first code i created every since i learned python, i hope you enjoy. P.S Try not to look at the code as it gives away the AI's coding P.S.S Try to play "seriously" for better AI experience, imagine that the AI is a human you are facing, play about 10-20 matches so that the AI have time to learn your style. Here is my friend's score against the AI after 30 matches with it ![6802134.499999927_image](https://storage.googleapis.com/replit/images/1548145150491_6f8ad8826d2320bd1cb0f99d652d4c0c.pn) It may not look that exciting, however my friend is really smart and have made reasonable and logical choices for all 30 matches, so you can expect the AI to be difficult (The numbers scares me because it was clearly evident that the AI was on par as him when looking at the datas, further matches may eventually resulted a loss to him as the AI would learn even more)
5
posted by OrionLee (12) 2 days ago
▲
10
| \ | I | \ / |
The age old game of Nim with an AI opponent who can never lose.
2
posted by Megamicah (9) 2 days ago
▲
11
Tic Tac Toe bot
A while ago I built regular tic tac toe, but since then I've added a one player version with a bot for you to play against. Hope you have some fun trying it out!
3
posted by madawson900 (10) 2 days ago
▲
14
Pokemon Name Generator!
# How to use & What it is ![image](https://storage.googleapis.com/replit/images/1547931949724_af479074e7156a7834adf40b9377b1eb.pn) This is a pre-trained AI, that creates new Pokemon names based off a list of around 800. The code is actually really, stupidly simple thanks to the all powerful textgenrnn library which you can find [here](https://github.com/minimaxir/textgenrnn). If you would like to train it yourself, fork it and delete all the files that start with textgenrnn. If you want it to create more realistic names, you should change the `num_epochs` value to something higher. Granted, this means it will also take longer to train. # What I learned Even with this small amount of code, you learn a lot about AI. The first thing being what works as data. I was originally making an AI from my spam emails, however with only 15 emails, the AI was generating gibberish with no sign of improving. After training with pokemon names, 800 of them, the progress it was making was becoming much clearer. The problem with pokemon names is that it's a single word. The textgenrnn lib works much better with sentences, and because of this I had a very high ***loss*** ratio. Loss is just a number that's used to show how different the AI's output is, to the input or some other determining factor. Lastly, temperature determines how extreme the AI's Pokemon names are. A low temp means less creative but more accurate, high is the opposite, and usually more fun! # Did it work? Yes, and no. I think I was able to create an AI that did learn, for example you'll see that early on the AI is using vowels anywhere, but eventually keeps them in the center of names, which is how most Pokemon names are. In addition, it *very* quickly learned not too use caps letters at the beginning, and only at the beginning. However it's really impossible to grade how it did. Pokemon names are random gibberish already, so it can make anything and it'll sound just fine. ### But go on! Run the repl and see what names it makes for you!
3
posted by 21natzil (339) 3 days ago
▲
17
🤖 5x5 Tic Tac Toe Bot - Taking 3x3 to the next level!
Play a game of 5x5 Tic Tac Toe against a very hard bot! A true challenge compared to 3x3. ![tictactoe](https://storage.googleapis.com/replit/images/1548074307432_4f020275d70bfd2e34d6b131fe6ad2a6.pn) # Introduction We are all used to playing 3x3 tic tac toe. A relatively easy game to tie, and a bit harder to pull off a win. This bot takes it to the next level! You can now play 5x5 tic tac toe against a very good ai. This is a true challenge to win. If you win, comment below (you deserve a cookie). # How the AI Works The Ai follows a set process: 1) Check if there is a space where either player can go to win immediately. If so, go there. You are either blocking the enemy or winning the game. 2) Check if you can make a fork. That is a move that opens up multiple groups of five empty spaces. With forks, you will be able to attempt to win in different directions. 3) Play an open corner (4 spaces) 4) Play an open center space (9 spaces) 5) Play an empty side space (12 spaces)
6
posted by DaBananaGuy (18) 3 days ago
▲
15
Bob
Bob is an interactive *AI*. You can play games, use a calculator, and more!
6
posted by Casidar (14) 3 days ago