X-Git-Url: https://git.xandkar.net/?p=cellular-automata.git;a=blobdiff_plain;f=005%2Flife.awk;h=0e6fb02182625c8b99a1db6c29e5d0cc45cb3553;hp=101f66ad25d0a8e6af79c4ab8b5efe41355f418c;hb=4eb3be32ce405e69f39573b5e38171764cd0d789;hpb=443ef34752734dfb68f7609075182f7d76c125bc diff --git a/005/life.awk b/005/life.awk index 101f66a..0e6fb02 100755 --- a/005/life.awk +++ b/005/life.awk @@ -59,7 +59,7 @@ function get_new_state(state, live_neighbors) { function set_generation(board, gen_id, y, x) { - num_directions = split("N,NE,E,SE,S,SW,W,NW", directions, ","); + num_directions = split("N, NE, E, SE, S, SW, W, NW", directions, ", "); offsets["N" , "x"] = 0; offsets["N" , "y"] = -1;