Skip to content

kzzazzk/Langton-Ant-Simulator

Repository files navigation

Langton's Ant Simulator🐜🔲🔳

image

Dive into the mesmerizing world of Langton's Ant, a captivating cellular automaton that unveils the wonders of emergent behavior and complexity through deceptively simple rules. Welcome to our GitHub project, where we present a Java-based Langton's Ant simulator, inviting you to embark on a journey of exploration and experimentation. Witness how a solitary ant, guided by basic principles, weaves intricate patterns on a grid canvas.

Table of Contents

Introduction

Langton's Ant, named after its creator Christopher Langton, is a cellular automaton consisting of a grid of cells, each of which can be in one of two states: black or white. An "ant" is placed on one of the cells and moves according to a set of simple rules:

  1. If the ant is on a white cell, it turns 90 degrees to the right, flips the color of the cell to black, and moves one step forward.
  2. If the ant is on a black cell, it turns 90 degrees to the left, flips the color of the cell to white, and moves one step forward.

image

These seemingly straightforward rules lead to surprising and intricate patterns as the ant continues to move.

Features

  • Simulate Langton's Ant behavior on a grid.
  • Adjustable grid size.
  • Visualize the grid and ant's movement in real-time.

Getting Started

To get started with the Langton's Ant simulator, follow these steps:

  1. Clone the repository to your local machine:

    git clone https://github.com/kzzazzk/Langton-Ant-Simulator.git
  2. Run Ejecucion.java

    java Ejecucion.java

About

Proyecto de juego de la vida simple

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages