https://github.com/jadhaidar/ts-hashlife
Hashlife in Typescript
https://github.com/jadhaidar/ts-hashlife
cellular-automata conway game-of-life hashlife simulation typescript
Last synced: 4 months ago
JSON representation
Hashlife in Typescript
- Host: GitHub
- URL: https://github.com/jadhaidar/ts-hashlife
- Owner: jadhaidar
- License: other
- Created: 2025-03-05T12:18:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-14T23:57:58.000Z (over 1 year ago)
- Last Synced: 2025-08-24T08:13:08.811Z (10 months ago)
- Topics: cellular-automata, conway, game-of-life, hashlife, simulation, typescript
- Language: TypeScript
- Homepage: https://hashlife.jadhaidar.com
- Size: 107 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ts-hashlife
Efficient TypeScript implementation of HashLife, an optimized algorithm for simulating Conway's Game of Life with memoization and quadtree-based compression.
## Installation
```bash
npm install ts-hashlife
# or
yarn add ts-hashlife
# or
pnpm add ts-hashlife
```
## Features
- Implements the HashLife algorithm for Conway's Game of Life
- Written in TypeScript with full type definitions
- Supports both Node.js and browser environments
- Highly optimized for simulating large, sparse patterns
- Includes utilities for drawing and importing/exporting Life patterns
## Credits
This implementation is based on [copy/life](https://github.com/copy/life) by Fabian Hemmer, a JavaScript implementation of the HashLife algorithm. The original project provided the foundation and core algorithm that this TypeScript implementation builds upon.
## License
BSD-2-Clause
This project contains code from the [copy/life](https://github.com/copy/life) project, which is also licensed under the BSD-2-Clause license.