ScratchData LogoScratchData
Back to amir10's profile

Langton's ant

AMamir10•Created January 30, 2015
Langton's ant
1
0
41 views
View on Scratch

Instructions

Langton's ant is a cellular automaton that models an ant sitting on a plane of cells, all of which are white initially, facing in one of four directions. Each cell can either be black or white. The ant moves according to the color of the cell it is currently sitting in, with the following rules: 1. If the cell is black, it changes to white and the ant turns left; 2. If the cell is white, it changes to black and the ant turns right; 3. The Ant then moves forward to the next cell, and repeat from step 1.

Description

Instructions from http://rosettacode.org/wiki/Langton%27s_ant

Project Details

Project ID45622212
CreatedJanuary 30, 2015
Last ModifiedAugust 9, 2015
SharedJanuary 30, 2015
Visibilityvisible
CommentsAllowed