mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-05 10:48:29 +00:00
Add Conway's Game of Life
This commit is contained in:
parent
db33973e0a
commit
dba7552c1e
22 changed files with 664 additions and 186 deletions
|
@ -446,7 +446,6 @@ static void OnPrevEnd(void) {
|
|||
|
||||
static void OnMouse(char *p) {
|
||||
int e, x, y;
|
||||
struct Panel *ep;
|
||||
e = strtol(p, &p, 10);
|
||||
if (*p == ';') ++p;
|
||||
x = min(txn, max(1, strtol(p, &p, 10))) - 1;
|
||||
|
@ -843,13 +842,7 @@ static void RangesZoom(void) {
|
|||
}
|
||||
|
||||
static void MemZoom(void) {
|
||||
char *p;
|
||||
int c, fg2, rc, fg;
|
||||
long i, n, r, w, y, x, got, have;
|
||||
do {
|
||||
if (action & INTERRUPTED) {
|
||||
break;
|
||||
}
|
||||
if (action & RESIZED) {
|
||||
GetTtySize();
|
||||
SetupCanvas();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue