<commit_before># Robots
A couple of collective intelligence algorithms implemented.

# Dependencies

pygame 1.9.1

# Flocking

The flocking folder contains code for the flocking problem (swarm problem). 

There is a nice description of the problem in this wikipedia article:

https://en.wikipedia.org/wiki/Flocking_(behavior)

# Usage

On the command line:
python flocking.py

The result will be:

![alt tag](https://github.com/igorbpf/Robots/blob/master/images/flocking_demo.png)

It is also possible add some flags in order to change some variables. The command:

python flocking.py --n_boids=50 --time=20  

will execute the program for 20 seconds and with 50 boids. Type python flocking.py -h
to get more details about the flags available.

# Formation

The formation folder contains code for the flocking-formation problem.
<commit_msg>Update README.md - add detail<commit_after># Robots
A couple of collective intelligence algorithms implemented.

# Dependencies

pygame 1.9.1

# Flocking

The flocking folder contains code for the flocking problem (swarm problem). 

There is a nice description of the problem in this wikipedia article:

https://en.wikipedia.org/wiki/Flocking_(behavior)

# Usage

On the command line:
python flocking.py

The result will be:

![alt tag](https://github.com/igorbpf/Robots/blob/master/images/flocking_demo.png)

It is also possible add some flags in order to change some variables. The command:

python flocking.py --n_boids=50 --time=20  

will execute the program for 20 seconds and with 50 boids. Type python flocking.py -h
to get more details about the flags available.

# Formation

The formation folder contains code for the flocking-formation problem. Robots following a leader.

{'fraction_non_alphanumeric': 0.06898550724637681, 'fraction_numerical': 0.012753623188405797, 'mean_word_length': 4.294478527607362, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3645445', 'n_tokens_mistral': 532, 'n_tokens_neox': 493, 'n_words': 211}