Files | |
| file | table_size.c |
| Determine the symmetry of trap patterns - source file. | |
Functions | |
| static void | _interrupt (int sig) |
| If this program receives a SIGINT, then print out the current totals. | |
| static void | _make_move (int pos) |
| This routine does most of the work of determining the symmetry of trap patterns. | |
| static int | _revolve (int iplain) |
| Revolve a plain 180 degrees about a diagonal axis. | |
| static int | _rotate (int iplain) |
| Rotate a plain 90 degrees. | |
| int | main (void) |
| Determine the symmetry of trap patterns. | |
Variables | |
| int | a_board |
| Alpha board. | |
| int | b_board |
| Beta board. | |
| uint | non_wins |
| Number of non-winning patterns. | |
| uint | sym_0 |
| Number of 0-symmetrical patterns. | |
| uint | sym_2 |
| Number of 2-symmetrical patterns. | |
| uint | sym_4 |
| Number of 4-symmetrical patterns. | |
| uint | sym_8 |
| Number of 8-symmetrical patterns. | |
Determine the symmetry of trap patterns. That is, determine the number of non-winning patterns, the number of 0-symmetrical patterns, the number of 2-symmetrical patterns, the number of 4-symmetrical patterns, and the number of 8-symmetrical patterns.
|
|
If this program receives a SIGINT, then print out the current totals.
|
|
|
This routine does most of the work of determining the symmetry of trap patterns.
|
|
|
Revolve a plain 180 degrees about a diagonal axis.
|
|
|
Rotate a plain 90 degrees.
|
|
|
Determine the symmetry of trap patterns.
|
|
|
Alpha board.
|
|
|
Beta board.
|
|
|
Number of non-winning patterns.
|
|
|
Number of 0-symmetrical patterns.
|
|
|
Number of 2-symmetrical patterns.
|
|
|
Number of 4-symmetrical patterns.
|
|
|
Number of 8-symmetrical patterns.
|
1.4.5