> For the complete documentation index, see [llms.txt](https://steeber.gitbook.io/chaos-birds/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://steeber.gitbook.io/chaos-birds/breedy-birds/dna.md).

# DNA

Breedy Birds have four base pairs that are concatenated with hyphens and then hashed using the [SHA1 hashing algorithm](http://www.sha1-online.com/). Base pairs are pairs of two capital letters: `A`, `B`, and `C`. Each pair represents a visual attribute of the offspring DNA: Beak, Body, Eyes, and Head.

Six varieties of each visual attribute will be commissioned to represent all unique letter pairings: `AA`, `AB`, `AC`, `BB`, `BC`, and `CC`. Therefore, offspring will be generated by sampling a random letter from each of its parents' base pairs. Offspring DNA will be generated by concatenating their parents' DNA hashes and running that through the SHA1 hashing algorithm: `sha1(<male dna>-<female dna>)`.

For example, let's say Breedy Bird #01 breeds with Breedy Bird #04:

* \#01 base pairs: `BA-CB-CB-CC`
* \#01 DNA: `1b8e98d6cc666bfd6a64cda64cedee514da4b07a`
* \#04 base pairs: `AC-CC-AB-CB`
* \#04 DNA: `a9686e968ef0dbf77ef6ee83346ca20abb008567`
* Offspring possible beaks: `AA`, `AB`, `AC`, `BC`
* Offspring possible bodies: `BC`, `CC`
* Offspring possible eyes: `AB`, `AC`, `BB`, `BC`
* Offspring possible heads: `BC`, `CC`
* Number of possible combinations: 64
* Offspring DNA: `79894f15561725a16c0561d8dafa6d9dc72ea8d6`

All of this is being done to ensure that offspring are generated in a totally deterministic and verifiable manner.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://steeber.gitbook.io/chaos-birds/breedy-birds/dna.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
