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

Adding Black Jack Environment #93

Merged
merged 4 commits into from
Oct 18, 2020
Merged

Adding Black Jack Environment #93

merged 4 commits into from
Oct 18, 2020

Conversation

RajGhugare19
Copy link
Contributor

No description provided.

@RajGhugare19
Copy link
Contributor Author

I have just added the blackjack for now to review if I am doing it the correct way. Others will follow shortly :)

Copy link
Member

@findmyway findmyway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also add a test case to make sure that this environment can pass some basic tests?

function BlackjackEnv(;natural=false,rng = Random.GLOBAL_RNG)
# natural = flag to payout on a "natural" blackjack win, like casion rules
action_space = DiscreteSpace(2)
observation_space = VectSpace((DiscreteSpace(32),DiscreteSpace(11),DiscreteSpace(2)))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use MultiDiscreteSpace here?
The type will be more concise.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright I'll change this to MultiDiscreteSpace

@RajGhugare19
Copy link
Contributor Author

Could you also add a test case to make sure that this environment can pass some basic tests?
Could you give some example? and could you tell me in which file shall I add these tests?

@findmyway
Copy link
Member

See examples here:

https://github.com/JuliaReinforcementLearning/ReinforcementLearningEnvironments.jl/blob/master/test/environments.jl#L32

Changing from vectorspace to multidiscretespace
Adding test case for BlackJack
@RajGhugare19
Copy link
Contributor Author

Is this right? @findmyway

@findmyway findmyway merged commit fa0fbd9 into JuliaReinforcementLearning:master Oct 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants