-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
165 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
*.swp | ||
*.swo | ||
|
||
voila.c | ||
|
||
# open sources | ||
repos | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
lifeterm: lifeterm.c | ||
$(CC) lifeterm.c -g -o lifeterm.out -Wall -Wextra -pedantic -std=c99 | ||
$(CC) lifeterm.c -g -o lifeterm -Wall -Wextra -pedantic -std=c99 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,33 @@ | ||
# Conway game of life editor on terminal | ||
# LifeTerm | ||
Game of life editor right on your terminal because who is web browser or app these days? 🤷 | ||
|
||
### TO DO: | ||
- [x] Prune the current voila.c | ||
- [ ] Convert voila to draw form a matrix | ||
- [ ] Press space to change state of a matrix | ||
- [ ] Update rules | ||
- [ ] Control buttons : p-play/pause. n-next. r-reload. q-quit | ||
This is completely work in progress there are tons of thing to improve. | ||
 | ||
|
||
# How to | ||
### RUN | ||
> The grid is based on the screen of your terminal, so make sure you larger your screen before run | ||
`./lifeterm` | ||
|
||
### Keymap | ||
| Key | Description | | ||
|----------|---------------------------| | ||
| w, a, s, d | Game style: move one step | | ||
| W, A, S, D | Game style: move 10 steps | | ||
| h, j, k, l | Vim style: move on step | | ||
| H, J, K, L | Vim style: move on step | | ||
| Arrows | Move on step | | ||
| x, space | Spawn/Kill a cell | | ||
| u, n | Next generation | | ||
| r, R | Refresh | | ||
| q | Quit | | ||
|
||
### Additional features | ||
- [ ] Load saved game from file csv? | ||
### Font | ||
For the best experience, Use the font [square](/assets/square.ttf) on your terminal, It has square cells. | ||
|
||
It's the current limitation of this program since it's a text editor base. | ||
|
||
# Todo | ||
- [ ] Square grid cell | ||
- [ ] Add load/save game | ||
- [ ] Infinite grid / Dynamic size grid |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
make | ||
clear | ||
if [ $? -eq 0 ]; then ./lifeterm.out lifeterm.c; fi | ||
make | ||
if [ $? -eq 0 ]; then ./lifeterm; fi |