Skip to content

Commit

Permalink
docs(readme): Add demo video
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Jul 13, 2024
1 parent 796f7fb commit 4cf34b8
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
[![Build](https://github.com/gabe565/cli-of-life/actions/workflows/build.yaml/badge.svg)](https://github.com/gabe565/cli-of-life/actions/workflows/build.yaml)
[![Go Report Card](https://goreportcard.com/badge/github.com/gabe565/cli-of-life)](https://goreportcard.com/report/github.com/gabe565/cli-of-life)

Run Conway's Game of Life in your terminal!
Play Conway's Game of Life in your terminal!

<p align="center">
<picture>
<source media="(prefers-color-scheme: light)" srcset="https://github.com/user-attachments/assets/dfda81d9-2211-4ee9-ae10-201716e5a218">
<img width="720" alt="cli-of-life demo" src="https://github.com/user-attachments/assets/c5fdf882-af73-4f3e-90cb-e53fd2dcbf35">
</picture>
</p>

## Installation

Expand Down
65 changes: 65 additions & 0 deletions assets/demo.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
Output cli-of-life.gif

Set TypingSpeed 20ms

Set Theme "Builtin Dark"
# Set Theme "Builtin Light"
# Set MarginFill "transparent"
Set FontSize 14
Set Width 970
Set Height 720
Set Padding 30
Set WindowBar Colorful
Set BorderRadius 10

Hide
Type@0 'PATH="$PWD:$PATH"; clear'
Enter
Sleep 100ms
Show
Sleep 50ms

Type "cli-of-life --file=patterns/gosperglidergun.rle"
Sleep 400ms
Enter
Sleep 200ms
Type "w "
Sleep 5s
Type "q"
Sleep 250ms

Type "cli-of-life --file=patterns/gabrielsp138.rle"
Sleep 400ms
Enter
Sleep 200ms
Type " "
Sleep 4s
Type "q"
Sleep 250ms

Type "cli-of-life --file=patterns/3blocktwinbeesshuttle.rle"
Sleep 400ms
Enter
Sleep 200ms
Type " "
Sleep 4s
Type "q"
Sleep 250ms

Type "cli-of-life --file=patterns/biblockfuse.rle"
Sleep 400ms
Enter
Sleep 200ms
Type " "
Sleep 3s
Type "q"
Sleep 250ms

Type "cli-of-life --file=patterns/piheptomino.rle"
Sleep 400ms
Enter
Sleep 200ms
Type " "
Sleep 6.5s
Type "q"
Sleep 250ms

0 comments on commit 4cf34b8

Please sign in to comment.