life

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 66e89abd3a047607a98d2411bac9726afcdfe293
parent e69d5606e01c40e8a392e6c5f5b1e1897adacbe9
Author: Wilson Gheen <wilson@wilsonrgheen.com>
Date:   Fri,  9 Dec 2022 03:42:34 -0600

Fix copying error. Actually works now

Diffstat:
Mlife.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/life.c b/life.c @@ -117,7 +117,8 @@ void play(uint32_t board[], int rows, int cols) { print_board(board, rows, cols); sleep(1); uint32_t *l2 = get_next_state(board, rows, cols); - memcpy(board, l2, sizeof l2); + // TODO calculate this better + memcpy(board, l2, 32); } /* for(int i=0; i < rows; i++)*/ /* printf("row %d:\t% 6x\t(%" PRIu32 ")\n", i, BOARD[i]);*/