Skip to content

Commit 63bdd57

Browse files
authored
Add files via upload
This main.cpp can take a text file of zeroes and ones of a square matrix to test for percolation, or can generate tests on random matrices (arguments needing p, n, s (probability, number of boards, and size of board).
1 parent 3a4df5b commit 63bdd57

File tree

6 files changed

+819
-0
lines changed

6 files changed

+819
-0
lines changed

game1.txt

+200
Large diffs are not rendered by default.

game2.txt

+100
Large diffs are not rendered by default.

game3.txt

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
0 1 1 1 1 1 1 0 0 1
2+
0 1 0 1 0 1 1 1 1 1
3+
1 1 0 0 1 0 0 0 0 1
4+
1 0 1 1 0 1 1 1 1 1
5+
1 0 1 1 1 0 0 0 1 0
6+
0 0 0 0 0 0 1 1 1 0
7+
1 0 0 1 1 0 1 0 1 0
8+
0 0 1 1 0 1 1 1 0 1
9+
1 0 1 0 1 1 0 1 1 0
10+
1 0 1 0 1 0 0 0 0 0

game4.txt

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
1 1 1 0 0 1 1 1 1 0 1 1 1 0 1 1 1 1 1 1
2+
0 0 1 1 1 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0
3+
1 1 1 1 1 1 1 0 1 1 1 1 0 1 0 1 1 1 1 1
4+
0 0 1 0 0 1 1 0 1 1 0 0 0 1 0 1 0 1 0 1
5+
0 1 1 0 1 1 1 1 0 1 1 0 1 1 0 0 0 1 0 0
6+
0 1 0 1 0 1 1 0 0 0 0 1 1 0 1 1 0 1 1 0
7+
1 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0
8+
0 1 0 1 1 1 0 1 0 1 0 1 1 0 0 1 0 1 0 1
9+
0 0 0 0 1 0 1 1 1 1 0 1 0 0 1 0 1 1 0 0
10+
0 0 1 1 1 1 0 0 1 0 0 0 1 0 0 1 0 0 0 1
11+
0 0 1 0 1 0 1 0 0 1 0 1 1 0 0 1 0 1 1 0
12+
0 1 0 1 1 1 1 1 0 1 1 0 1 1 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