Coder Social home page Coder Social logo

Probability Calculation about dominoes HOT 13 CLOSED

abw333 avatar abw333 commented on July 17, 2024
Probability Calculation

from dominoes.

Comments (13)

 avatar commented on July 17, 2024 3

I am waiting sir !!!

from dominoes.

pcattori avatar pcattori commented on July 17, 2024 2

@abw333 is presumably not being paid to maintain this repo and looks like this is a personal project. @AhmadBilal1989 you are not entitled to the repo owner's time or attention, though you can ask for it (and i assure you that politeness and realistic expectations will be appreciated).

Please refrain from making exorbitant demands. Rude users are a big reason why people who maintain open source code bases burnout

from dominoes.

abw333 avatar abw333 commented on July 17, 2024 1

Hi Ahmad: unfortunately, I am quite busy and cannot help you with your personal project. That said, if you run into any issues regarding the usage of the dominoes library, please let me know and I will do my best to assist you. Additionally, you may find this repository's README and the full documentation (linked from the README) useful. Best of luck on your project.

from dominoes.

 avatar commented on July 17, 2024

please help me, i am stuck

from dominoes.

abw333 avatar abw333 commented on July 17, 2024

Hi Ahmad, can you provide more details about the probabilities you are trying to calculate/monitor and how you are trying to calculate/monitor them? Perhaps an example would be helpful.

from dominoes.

 avatar commented on July 17, 2024

I am using bayes' theorem to monitor the probabilities. I have written a probability mass function to calculate probability.

dominoes_tiles = Pmf()

for x in [(0,0),(0,1),(0,2),(0,3),(0,4),(0,5),(0,6),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(2,2),(2,3),(2,4),(2,5),(2,6),
(3,3),(3,4),(3,5),(3,6),(4,4),(4,5),(4,6),(5,5),(5,6),(6,6)]:
dominoes_tiles[x] = 1/28

print(dominoes_tiles)

Where i am stuck is this works as far as game is not started and all tiles are equally likely, as the game starts and dominoes are shuffled every player has their 7 tiles and probability of each tile becomes 7/28.
An artificial player when receive its tile will change its tile's probability from 7/28 to 1 (using bayes'theorem).
And for all the other tiles it will have probability as 7/21.

I want when tiles are shuffled , i could monitor probabilities.

from dominoes.

 avatar commented on July 17, 2024

I need very serious help, my deadline is ahead very soon.

from dominoes.

 avatar commented on July 17, 2024

screen shot 2017-11-05 at 10 10 15 pm

from dominoes.

 avatar commented on July 17, 2024

How to update probability when i specific tile is revealed.

specific_tile = Pmf(['AI Player 0','Player 1','Player 2','Player 3'])

print(specific_tile)

print("\n\n")

specific_tile['AI Player 0'] *= 0.25

specific_tile['Player 1'] *= 0.25

specific_tile['Player 2'] *= 0.25

specific_tile['Player 3'] *= 0.25

specific_tile.Normalize()

print(specific_tile)

from dominoes.

 avatar commented on July 17, 2024

Please tell me where to make changings and how? i am trying from many days.

from dominoes.

BilalAhmadJavaid avatar BilalAhmadJavaid commented on July 17, 2024

from dominoes.

pcattori avatar pcattori commented on July 17, 2024

@BilalAhmadJavaid You are welcome to offer monetary compensation for @abw333 's help, but he is not required to accept it. You can work that out with him.

from dominoes.

 avatar commented on July 17, 2024

from dominoes.

Related Issues (8)

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.