home
/
code
/
cellular-automata.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Re-ordered function definitions.
[cellular-automata.git]
/
004
/
life.awk
diff --git
a/004/life.awk
b/004/life.awk
index
ff80828
..
c996455
100755
(executable)
--- a/
004/life.awk
+++ b/
004/life.awk
@@
-22,14
+22,6
@@
function get_init_board(n) {
}
}
-function do_print_border(x) {
- for (i=1; i <= x; i++) {
- printf CHAR_BORDER()
- };
- print;
-}
-
-
function get_char_of_state(state) {
if (state == 1) {
return CHAR_ALIVE()
function get_char_of_state(state) {
if (state == 1) {
return CHAR_ALIVE()
@@
-39,6
+31,14
@@
function get_char_of_state(state) {
}
}
+function do_print_border(x) {
+ for (i=1; i <= x; i++) {
+ printf CHAR_BORDER()
+ };
+ print;
+}
+
+
function do_print_board(x, n, board) {
do_print_border(x);
function do_print_board(x, n, board) {
do_print_border(x);
This page took
0.023454 seconds
and
4
git commands to generate.