This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

RcCookie
RcCookie presents ...

2020/8/13

Lines.io

Control your line around the world by using the arrow keys. Don't collide with your or the other players lines while you continuosly get bigger. Survive longer than the ai or against your friends in multiplayer!

Believe me: it looks and runs A LOT better in greenfoot than on the website - my crappy laptop can handle 150 ai players at 20 fps! Also, GreenfootImage does not work properly on the website, and the background and the button animations look horrible.

4148 views / 17 in the last 7 days

2 votes | 0 in the last 7 days

Tags: mouse game physics demo with-source menu simple button line .io

This scenario is a member of: My friends' and my best games


open in greenfoot
Your browser is ignoring the <APPLET> tag.
A new version of this scenario was uploaded on 2020-08-13 12:27:03 UTC
Do you have bots that only respond to certain data, or how can Artificial Intelligence be trained?
RcCookieRcCookie

2020/8/13

I have tried neural networks once, but failed;-) The ai uses raycasts; it checks the distance in every possible direction (left, right, straight) and selects the direction with the biggest distance. With the difficulty slider you basically adjust the frequency at which the ai checks the distances. Also, the update frequency is randomized
Then it's not Artificial Intelligence, but rather bots, but there's nothing wrong with that, sometimes they're better AI(because they don't need to learn)
Your bots are quite smart, if you want, I can help with their training, I have been studying this topic for a long time))
RcCookieRcCookie

2020/8/13

You can try to rework their decisions, the source code is right there. You could try to make a neural network that uses the three inputs and maybe two in 45 degree angles to output a value for each option(left, right, straight)
RcCookieRcCookie

2020/8/13

Also sorry if I’m wrong with ai vs bots, I’m just a student ;-)
There is nothing wrong with this, but it is worth distinguishing them. If there is time, I will try to pump your version.
RcCookieRcCookie

2020/8/13

Cool! Make sure to tell me

Want to leave a comment? You must first log in.

Who likes this?

Game/maniac Kostya20052011