Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/patryk27/shorelark
Simulation of life & evolution
https://github.com/patryk27/shorelark
evolution genetic-algorithm life neural-network rust simulation webassembly
Last synced: 18 days ago
JSON representation
Simulation of life & evolution
- Host: GitHub
- URL: https://github.com/patryk27/shorelark
- Owner: Patryk27
- License: mit
- Created: 2020-11-24T19:36:40.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-04T15:56:11.000Z (7 months ago)
- Last Synced: 2024-10-10T20:11:09.050Z (about 1 month ago)
- Topics: evolution, genetic-algorithm, life, neural-network, rust, simulation, webassembly
- Language: Rust
- Homepage: https://pwy.io/en/posts/learning-to-fly-pt1/
- Size: 621 KB
- Stars: 207
- Watchers: 6
- Forks: 21
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🐦 Shorelark
Simulation of evolution, powered by neural networks, genetic algorithms and
high school math:![screenshot](./readme/screenshot.png)
Feeling curious? I've described the implementation _ab ovo_ on my blog:
[Learning to Fly](https://pwy.io/posts/learning-to-fly-pt1).## Building
### Using Cargo and npm
Requires `cargo`, `npm` and `wasm-pack` (0.11.0):
```bash
# Clone the repository
$ git clone https://github.com/Patryk27/shorelark
$ cd shorelark# Build Rust code
$ cd libs/simulation-wasm
$ wasm-pack build --release# Build TypeScript code
$ cd ../../www
$ npm install# Start the application
$ npm run start# Now simply open `http://localhost:8080` in your web browser :-)
```### Using Nix
```bash
# Clone the repository
$ git clone https://github.com/Patryk27/shorelark
$ cd shorelark# Build the application
$ nix build# Start the application
$ nix run nixpkgs#php -- -S localhost:8080 -t result# Now simply open `http://localhost:8080` in your web browser :-)
```## Usage
Shorelark contains an in-game introduction - just read what the terminal on the
left side says and have fun!## License
Copyright (c) 2020 Patryk Wychowaniec .
Licensed under the MIT license.