Engine prototype #13
@ -10,19 +10,19 @@ values = BigFloat[]
|
|||||||
for j in 1:9
|
for j in 1:9
|
||||||
for k in 1:9
|
for k in 1:9
|
||||||
filled = false
|
filled = false
|
||||||
if j == k
|
if j == 9
|
||||||
push!(values, j < 9 ? 1 : 0)
|
|
||||||
filled = true
|
|
||||||
elseif (j == 9)
|
|
||||||
if (k <= 5 && k != 2)
|
if (k <= 5 && k != 2)
|
||||||
push!(values, 0)
|
push!(values, 0)
|
||||||
filled = true
|
filled = true
|
||||||
end
|
end
|
||||||
elseif (k == 9)
|
elseif k == 9
|
||||||
if (j <= 5 && j != 2)
|
if (j <= 5 && j != 2)
|
||||||
push!(values, 0)
|
push!(values, 0)
|
||||||
filled = true
|
filled = true
|
||||||
end
|
end
|
||||||
|
elseif j == k
|
||||||
|
push!(values, 1)
|
||||||
|
filled = true
|
||||||
elseif (j == 1 || k == 1)
|
elseif (j == 1 || k == 1)
|
||||||
push!(values, 0)
|
push!(values, 0)
|
||||||
filled = true
|
filled = true
|
||||||
|
Loading…
Reference in New Issue
Block a user