home
/
code
/
cellular-automata.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b161e88
)
Re-ordered function definitions.
author
Siraaj Khandkar
<siraaj@khandkar.net>
Sun, 26 Aug 2012 04:44:33 +0000
(
00:44
-0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Sun, 26 Aug 2012 04:44:33 +0000
(
00:44
-0400)
004/life.awk
patch
|
blob
|
blame
|
history
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()
@@
-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);
This page took
0.020732 seconds
and
4
git commands to generate.