home *** CD-ROM | disk | FTP | other *** search
- /*
- * File: mod.l2.c
- * By: Dave Hiebeler
- * hiebeler@turing.cs.rpi.edu
- * August 1989
- *
- * Add up the neighbors and return the sum mod 2.
- */
-
-
- #include "nborhood.h"
-
- byte mod_rule();
-
- void
- init_function()
- {
- update_function = mod_rule;
- }
-
-
- byte
- mod_rule(nbors)
- lr1_nbors *nbors;
- {
- Get_l_nbors;
- return (l+c+r)%2;
-
- }
-