Coder Social home page Coder Social logo

black_jack's Introduction

Solution for problem Blackjack in Sutton's Reinforcement Learning books

Language

  • python 3

Package required

  • numpy

  • random

Setting details

  • Action: a =0 or 1

    • a=0 stick
    • a=1 twist // automatically twist if sum of cards < 12
  • State: s = [my_sum, ace_own, s_card] //[13,0,8]

    • my_sum :the current sum of my cards.
    • ace_own :agent own a ace card or not // 0 for yes 1 ;for no
    • s_card :host showing card
  • POLICY: pai[1] = [0.4, 0.6] // under State[1], prob for stick is 0.4, prob for twist is 0.6

  • Value function: Q [2] [0] =23 // q of (State[1], stick) is 23

black_jack's People

Contributors

dynmi avatar

Watchers

 avatar  avatar

Forkers

ccoo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.