-record(state, {x :: non_neg_integer()
,y :: non_neg_integer()
- ,n :: non_neg_integer()
- ,bar :: string()
+ ,n :: pos_integer()
+ ,bar :: nonempty_string()
,board :: array()
- ,gen_count :: non_neg_integer()
+ ,gen_count :: pos_integer()
,gen_duration :: non_neg_integer()
,print_time :: non_neg_integer()
}).
do_print_board(Board) ->
- CharLists = array:to_list(
+ RowStrings = array:to_list(
array:map(
fun(_, Row) ->
array:to_list(
),
ok = lists:foreach(
- fun(CharList) ->
- ok = io:format("~s~n", [CharList])
+ fun(RowString) ->
+ ok = io:format("~s~n", [RowString])
end,
- CharLists
+ RowStrings
).