Skip to content

Commit 436004b

Browse files
Merge pull request #20 from JuliaReinforcementLearning/jeremiahpslewis-patch-1
Add information_state_string
2 parents 511dd9d + d233e4f commit 436004b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "OpenSpiel"
22
uuid = "ceb70bd2-fe3f-44f0-b81f-41608acaf2f2"
33
authors = ["Jun Tian <[email protected]>"]
4-
version = "0.2.0"
4+
version = "0.2.1"
55

66
[deps]
77
CxxWrap = "1f15a43c-97ca-5a2a-ae31-89f07a497df4"

src/patch.jl

+2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ is_terminal(state::CxxWrap.StdLib.UniquePtrAllocated{State}) = is_terminal(state
8888

8989
information_state_string(state::CxxWrap.StdLib.UniquePtrAllocated{State}) = information_state_string(state[])
9090

91+
information_state_string(state::CxxWrap.StdLib.UniquePtrAllocated{State}, i) = information_state_string(state[], i)
92+
9193
get_uniform_policy(game::CxxWrap.StdLib.SharedPtrAllocated{Game}) = get_uniform_policy(game[])
9294

9395
record_batched_trajectories(game::CxxWrap.StdLib.SharedPtrAllocated{Game}, p::CxxWrap.StdLib.StdVectorAllocated{TabularPolicy}, m::StdMapAllocated{StdString, Int32}, i::Int64, b::Bool, i2::Int64, i3::Int64) = record_batched_trajectories(game[], p, m, i, b, i2, i3)

0 commit comments

Comments
 (0)