Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit b4abe78

Browse files
authored
remove duplicated code in BitFlippingEnv (#123)
1 parent 7b77e4f commit b4abe78

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/environments/examples/BitFlippingEnv.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ struct BitFlippingEnv <: AbstractEnv
1313
goal_state::BitArray{1}
1414
end
1515

16-
function BitFlippingEnv(; N = 8)
17-
rng = Random.GLOBAL_RNG
18-
state = bitrand(rng, N)
19-
goal_state = bitrand(rng, N)
20-
BitFlippingEnv(N, rng, state, goal_state)
21-
end
22-
2316
function BitFlippingEnv(; N = 8, rng = Random.GLOBAL_RNG)
2417
state = bitrand(rng, N)
2518
goal_state = bitrand(rng, N)

0 commit comments

Comments
 (0)