Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in: "Model-Free Prediction & Control with Monte Carlo (MC)" section -> "Blackjack Playground.ipynb" file: #244

Open
Almujtaba-Yaseen opened this issue Sep 14, 2022 · 0 comments

Comments

@Almujtaba-Yaseen
Copy link

Almujtaba-Yaseen commented Sep 14, 2022

In the third line of the "strategy" function:

def strategy(observation):
score, dealer_score, usable_ace = observation
# Stick (action 0) if the score is > 20, hit (action 1) otherwise
return 0 if score >= 20 else 1

"> 20" should be ">= 20"

Also, the same typo in the "sample_policy" function, in the "MC Prediction.ipynb" file.

Thank you for your hard work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant