win_table.c File Reference

Initialize the trap table - source file. More...

#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <ctype.h>
#include <fcntl.h>
#include <malloc.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "assert.h"
#include "heuristic.h"
#include "score4.h"

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.
static int _rotate (int iplain)
 Rotate a plain 90 degrees.
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.


Detailed Description

Initialize the trap table - source file.

Author:
Stephen A. Broeker
Copyright (c) 1989 Stephen A. Broeker All Rights Reserved.

Function Documentation

static int _rotate int  iplain  )  [static]
 

Rotate a plain 90 degrees.

Returns:
int : plain that has been rotated 90 degrees.


Generated on Sat Sep 24 09:00:12 2011 for ScoreFour by  doxygen 1.4.5