code: public static int zobrist(char[] key, int mask, int[][] tab) {
  		int hash, i;
  		for (hash = key.length, i = 0; i < key.length; ++i) {
  			hash ^= tab[i][key[i]];
  		}
  		return (hash & mask);
  	}
docs: Zobrist Hashing
  
  @param key 字节数组
  @param mask 掩码
  @param tab tab
  @return hash值