Coder Social home page Coder Social logo

darktwentyfive / pygame-boids-simulation Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 15 KB

A simple python pygame simulation to simulate Boids. Boids is an artificial life program.

License: MIT License

Python 100.00%
boids boids-algorithm boids-behaviour boids-simulation pygame python python3 sim simulation artificial-intelligence

pygame-boids-simulation's Introduction

Pygame Boids Simulaton

This is a pygame simulation that simulated boids.

Image

Table of Contents

Installation

First, clone the Github repository with this command:

git clone https://github.com/DarkTwentyFive/Pygame-Boids-Simulation.git

Then, install the dependencies with:

pip install -r requirements.txt

Usage

Then, enter the code directory with:

cd Pygame-Boids-Simulation

Finally, run the code with:

python main.py

You will then receive an input to enter a word or phrase, enter it in and you will receive the predicted next word.

What is boids?

Boids is an artificial life program, developed by Craig Reynolds in 1986, which simulates the flocking behaviour of birds, and related group motion.

The rules applied in the simplest Boids world are as follows:

  • separation: steer to avoid crowding local flockmates.
  • alignment: steer towards the average heading of local flockmates.
  • cohesion: steer to move towards the average position (center of mass) of local flockmates.

The aim of the simulation was to replicate the behavior of flocks of birds. Instead of controlling the interactions of an entire flock, however, the Boids simulation only specifies the behavior of each individual bird.

Credits

Developed by Ruben Roy.

License

This boids simulation is open-source and is under the MIT License. See the LICENSE for more information.

pygame-boids-simulation's People

Contributors

darktwentyfive avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.