-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
44 lines (39 loc) · 1.07 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <ostream>
// #include "grid.hpp"
#include "weighted_grid.hpp"
using namespace Dominos;
int main(int argc, char *argv[]) {
// std::cout << "Taille grille" << std ::endl;
int taille;
std::cin >> taille;
srand(clock());
// Grid g(1);
// if (rand() % 2 == 0)
// g.set_square_horizontal(0, 0);
// else
// g.set_square_vertical(0, 0);
// g = Grid(4, g);
// g = Grid(g);
// g = Grid(g);
// // std::cout << g;
// std::cout << taille << "\n";
// Grid g = get_random_grid(taille, &std::cout);
// std::cout << g;
// g.to_svg(std::cout);
WeightedGrid wg(taille);
wg.set_constant(1);
wg.remove_square();
wg.import_inside_square(std::cin);
// // std::cout << wg << "\n";
// std::cout << wg.get_random_weighted_grid();
// WeightedGrid wg(taille);
// wg.set_constant(1);
// wg.remove_square();
// wg.import_inside_square(std::cin);
// wg.get_random_weighted_grid();
std::cout << taille << "\n";
std::cout << wg.get_random_weighted_grid() << std::endl;
}