X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=001%2Fsrc%2Ftime.erl;h=02cd61eaccae9cf480855684ad4df7602a253b20;hb=812a14ead86093096cd403f47405deeadfacbb98;hp=d93321582ea6d2269d7edb2b8abdcddf9c6558a4;hpb=172421cbe00ddf82a0b92fcb04bd73b4b14e2338;p=cellular-automata.git diff --git a/001/src/time.erl b/001/src/time.erl index d933215..02cd61e 100644 --- a/001/src/time.erl +++ b/001/src/time.erl @@ -89,6 +89,7 @@ handle_cast({tock, {ID, CellState}}, ,state_pairs=StatePairs ,replies_pending=RepliesPending ,gen_count=GenCount + ,num_cells=NumCells }=State) -> NewStatePairs = [{ID, CellState} | StatePairs], @@ -101,7 +102,10 @@ handle_cast({tock, {ID, CellState}}, SortedStatePairs = lists:sort(NewStatePairs), StateChars = [state_to_char(S) || {_, S} <- SortedStatePairs], ok = do_print_bar(X), - ok = io:format("GENERATIONS: ~b~n", [NewGenCount]), + ok = io:format( + "CELLS: ~b GENERATIONS: ~b~n", + [NumCells, NewGenCount] + ), ok = do_print_bar(X), ok = do_print_state_chars(X, StateChars), ok = do_print_bar(X),