# rm gbg4.html rm gbg4W.html rm map4.txt rm map4W.txt touch gbg4.html gbg4W.html map4.txt map4W.txt # echo "

GLASS BEAD GAME 4-BEAD ALL POSSIBLE SINGLE RULE TRANSFORMATIONS

" >> gbg4.html echo "

NO WRAP

" >> gbg4.html echo "

key:

" >> gbg4.html echo "" >> gbg4.html echo "" >> gbg4.html echo "" >> gbg4.html echo "" >> gbg4.html echo "
beaddigit
0
1

" >> gbg4.html # echo "

GLASS BEAD GAME 4-BEAD ALL POSSIBLE SINGLE RULE TRANSFORMATIONS

" >> gbg4W.html echo "

WRAP

" >> gbg4W.html echo "

key:

" >> gbg4W.html echo "" >> gbg4W.html echo "" >> gbg4W.html echo "" >> gbg4W.html echo "" >> gbg4W.html echo "
beaddigit
0
1

" >> gbg4W.html # foreach b ( 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 ) echo "

Starting beads: " {$b} "

" >> gbg4.html echo "

Starting beads: " {$b} "

" >> gbg4W.html foreach r ( `seq 0 255` ) python gbg.py -s 4 -b {$b} -f "1111" -n 64 -r {$r} -t {$b}_{$r}_map4.txt >> gbg4.html python gbg.py -s 4 -b {$b} -f "1111" -n 64 -r {$r} -t {$b}_{$r}_map4W.txt -W >> gbg4W.html echo "# " {$b} {$r} >> map4.txt cat {$b}_{$r}_map4.txt >> map4.txt echo "# " {$b} {$r} >> map4W.txt cat {$b}_{$r}_map4W.txt >> map4W.txt rm {$b}_{$r}_map4.txt {$b}_{$r}_map4W.txt end echo "
" >> gbg4.html echo "
" >> gbg4W.html end # cat *_map4.txt > map4.txt # cat *_map4W.txt > map4W.txt open gbg4.html open gbg4W.html