ios/pentago/base/board.h
// Pack two sides into a board
Pack two sides into a board
Pack two sides into a board
static inline board_t pack(side_t side0, side_t side1) {
  return quadrants(pack(quadrant(side0, 0), quadrant(side1, 0)),
                   pack(quadrant(side0, 1), quadrant(side1, 1)),
                   pack(quadrant(side0, 2), quadrant(side1, 2)),
                   pack(quadrant(side0, 3), quadrant(side1, 3)));
}
static inline board_t pack ( side_t side0 , side_t side1 ) { return quadrants ( pack ( quadrant ( side0 , 0 ) , quadrant ( side1 , 0 ) ) , pack ( quadrant ( side0 , 1 ) , quadrant ( side1 , 1 ) ) , pack ( quadrant ( side0 , 2 ) , quadrant ( side1 , 2 ) ) , pack ( quadrant ( side0 , 3 ) , quadrant ( side1 , 3 ) ) ) ; }
Pack two sides into a board
Pack two sides into a board