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

Commit ef4743f

Browse files
Format .jl files
1 parent 5c4dcce commit ef4743f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/environments/3rd_party/snake.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ function (env::SnakeGameEnv{A})(actions::Vector{CartesianIndex{2}}) where {A}
2828
if A === MINIMAL_ACTION_SET
2929
# avoid turn back
3030
actions = [
31-
a_new == -a_old ? a_old : a_new
32-
for (a_new, a_old) in zip(actions, env.latest_actions)
31+
a_new == -a_old ? a_old : a_new for
32+
(a_new, a_old) in zip(actions, env.latest_actions)
3333
]
3434
end
3535

src/environments/examples/TinyHanabiEnv.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ RLBase.state(env::TinyHanabiEnv, ::InformationSet, ::ChancePlayer) = (0, env.car
7777

7878
function RLBase.state_space(env::TinyHanabiEnv, ::InformationSet, p::Int)
7979
Tuple(
80-
(p, c..., a...) for p in 1:2 for c in ((), 1, 2)
81-
for a in ((), 1:3..., ((i, j) for i in 1:3 for j in 1:3)...)
80+
(p, c..., a...) for p in 1:2 for c in ((), 1, 2) for
81+
a in ((), 1:3..., ((i, j) for i in 1:3 for j in 1:3)...)
8282
)
8383
end
8484

0 commit comments

Comments
 (0)