ML-KULeuven / problog

ProbLog is a Probabilistic Logic Programming Language for logic programs with probabilities.
https://dtai.cs.kuleuven.be/problog/
317 stars 35 forks source link

Help with board game #120

Closed yonesko closed 1 month ago

yonesko commented 1 month ago

I am trying to use ProbLog to solve a board game called King of the dice and there is a task to find a probability of tossing exactly N=0,1,...6 dice with value 3 out of the set of 6.

I can only come up with an ugly solution of hard-coding N.

Could somebody help, please ?

rmanhaeve commented 1 month ago

Perhaps this example is relevant for your case: https://dtai.cs.kuleuven.be/problog/tutorial/advanced/10_urnballmodel.html