Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thetechnocrat-dev/darkforestframe
dark forest on farcaster
https://github.com/thetechnocrat-dev/darkforestframe
Last synced: 19 days ago
JSON representation
dark forest on farcaster
- Host: GitHub
- URL: https://github.com/thetechnocrat-dev/darkforestframe
- Owner: thetechnocrat-dev
- License: gpl-3.0
- Created: 2024-03-23T02:19:39.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-26T20:45:14.000Z (10 months ago)
- Last Synced: 2024-03-26T21:44:23.975Z (10 months ago)
- Language: TypeScript
- Homepage: https://darkforestframe.vercel.app
- Size: 5.3 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
“If I destroy you, what business is it of yours?”
― Liu Cixin, The Dark Forest[Inspire by Dark Forest zKSNARK Space Warefare](https://blog.zkga.me/announcing-darkforest)
Ruleset
1) Every player starts the game with three planets hidden from all other players.
2) Planets build up energy over time (equation 1).
3) At anypoint in the game a player can choose to reveal one or more of their planets for rest of the game.
4) A player can send energy from a planet they own to their other planets or to any other player's revealed planets (equation 2).
5) A planet is also revealed for rest of the game when it sends energy to a planet that is not yours.
6) At the end of the game the player with the most energy summed across their 3 planets wins (equation 3).Equation 1)
```
E = ln(t + 1)
```
* `E` is the current energy of the planet.
* `t` is the number of epochs since game start.
* `ln` is the natural log.Plot
An astute read might notice this looks similiar to the [bitcoin supply over time](https://commons.wikimedia.org/wiki/File:Total_bitcoins_over_time.png)
Equation 2)
a)
```
R = (1 / j) * integral_0_to_j(ln(t + 1))
```
* `R` is the threshhold variable of the below sigmoid function.b)
```
E_1' = E_1 * σ (E_1 − R)
```
* `E_1'` is the new energy of the planet after sending energy.
* `E_1` is the current energy of the planet sending energy.
* `σ` is the sigmoid function.
* `R` is the the threshold equation.c)
```
E_2' = E_2 * σ (E_2 − R)
```
* `E_2'` is the new energy of the planet receiving the energy.
* `E_2` is the current energy of the planet receiving energy.
* `σ` is the sigmoid function.
* `R` is the the threshold equation.Equation 3)
```
P = E1 + E2 + E3
```
* `P` is the number of points and `E1` is the energy from planet 1 and so on."In the cosmos, no matter how fast you are, someone will be faster; no matter how slow you are, someone will be slower."
- Liu Cixin, Death's End