ScratchData LogoScratchData
Back to dem_bot's profile

Langton's ant++

DEdem_bot•Created June 11, 2025
Langton's ant++
0
0
3 views
View on Scratch

Instructions

This is Langton's ant, but slightly different. How to use: We highly recommend turbowarp for this one unless you've got time to spare :) Enter the amount of ants you want. If you don't enter anything it keeps the same as previous round. Speed is exponential. The Time variable shows how many updates have occurred. What it does: When an ant walks over a square, it changes the colour value by 10 and based on a random set of rules decides in what direction to move. How to make your own AI: You can use the Add Rule block to add a new rule. The first five inputs can have a colour value or be blank. Keeping one blank makes the ant not care about the colour of the square. The inputs represent current, up, down, left, right. The 6th input can either be a number from 0-4 or U D L R and indicates the direction in which to move. The 7th input is a 0 or 1 depending on if you want it to be relative to it's current rotation (L and 0 would make it turn towards the left side of the screen, L and 1 would make it turn left 90 degrees) The 8th input is the colour to leave behind. (0-99, the visual colours loop, but the program thinks colour 2 is not the same as 102)

Description

Langton came up with his ant. I made it better in a way many have probably already done within the like 50 years it's been a thing

Project Details

Project ID1187593556
CreatedJune 11, 2025
Last ModifiedJune 17, 2025
SharedJune 11, 2025
Visibilityvisible
CommentsAllowed