Skip to content

Instantly share code, notes, and snippets.

View Randl's full-sized avatar

Evgenii Zheltonozhskii Randl

View GitHub Profile
@Randl
Randl / takuzu.cpp
Created October 25, 2015 21:58
Takuzu puzzle solver
#include <iostream>
#include <vector>
#include <array>
#include <algorithm>
enum Square { Zero, One, Nothing };
Square inverse(Square s) {
return s == Zero ? One : Zero;
}
@Randl
Randl / gen_dice.cpp
Created August 1, 2015 19:20
Dices genetic
#include <algorithm>
#include <array>
#include <vector>
#include <iostream>
#include <random>
#include <string>
#include <sstream>
using namespace std;
#include "stdafx.h"
#include <utility>
#include <array>
#include <random>
#include <iostream>
#include <cstdint>
#include <string>
#include <math.h>
const uint16_t kHeight = 10, kLength = 20;