Files | |
| file | win.c |
| Check for wins - source file. | |
| file | win_table.c |
| Initialize the trap table - source file. | |
| file | win_table.h |
| Initialize the trap table - header file. | |
Functions | |
| static int | _add_word2 (W_ENTRY *word, int index) |
| Add an entry to w_table2_1[]. | |
| static short | _nextbit (short plain, int offset) |
| Shift the next (from postion offset) on bit to the right most postion. | |
| void | w_init_1 (void) |
| Initialize the trap table. | |
Variables | |
| W_ENTRY | w_table1_1 [LEN_WTABLE] |
| One move away from a trap. | |
| W_ENTRY | w_table2_1 [LEN_WTABLE *4] |
| Two moves away from a trap. | |
Fill in w_table1_1[]. Each entry in Mem_FILE, as well as its three rotations, are added to w_table1_1[]. Four entries in w_table2_1[] are generated from one entry in w_table1_1[]. a_plain b_plain Each line in MEM_FILE is in the following format:
a_plain b_plain
where a_plain = stones that must be present for a first level trap. where b_plain = stones that must be empty for a first level trap.
|
||||||||||||
|
Add an entry to w_table2_1[].
|
|
||||||||||||
|
Shift the next (from postion offset) on bit to the right most postion.
|
|
|
Initialize the trap table.
|
|
|
One move away from a trap.
|
|
|
Two moves away from a trap.
|
1.4.5