This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <array> | |
#include <vector> | |
#include <list> | |
#include <deque> | |
#include "tupleit.hh" // http://pastebin.com/LFkTHdQk | |
#include <stdio.h> | |
#include <boost/range.hpp> | |
#include <boost/range/algorithm.hpp> | |
#include <boost/range/adaptors.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::rc::Rc; | |
trait HKT<U> { | |
type C; // Current type | |
type T; // Type with C swapped with U | |
} | |
macro_rules! derive_hkt { | |
($t:ident) => { | |
impl<T, U> HKT<U> for $t<T> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// bin stuff ------------------------------------------------------------------- | |
const BIN_WIDTH = 13.333333333333; | |
const HALF_BIN_WIDTH = (BIN_WIDTH / 2); | |
const BIN_HEIGHT = 14; | |
const HALF_BIN_HEIGHT = (BIN_HEIGHT / 2); | |
const NUM_BINS_X = 6; | |
const NUM_BINS_Y = 5; |