Hi,
I don't know the rules for those dice games, but I would be interested
in learning, if you could post them, or provide a url where they are listed.
I think that you should try to solve these problems on your own at first,
before you get solutions from others;
I recommend this because you will learn a lot more that way, and that will
serve you better should you work on any other Python problems.
Of course, in general, the more Python you already know, the easier it will be
to solve any particular problem,
because the more you know, the more tools you have that you can use
individually or in combination to solve your problems.
The disadvantage is that it takes some time to learn a considerable amount of
Python, but you can get a good start on getting the basics down by
working the tutorial found on the www.python.org website under the
documentation link.
Note:
You should familiarize yourself with the characteristics with the 'Dict' data
structure and it's methods,
which counter(), which is listed below, has most of.
Also, look up methods for 'list' data structures, particularly 'sort',
'sorted', and 'count' among others.
Below are some more advanced software tools beyond the basics that could be
(probably will be) useful to you in solving the dice game problems:
1) collections. counter()
load this page:
https://docs.python.org/3.1/library/collections.html
and then search for counter().
---
Thhis is more generally useful, but may not provide simple direct solutions to
any of your problems,
There are some very powerful tools found here and at the end there is a source
of some specific applications and a few of them are listed below that link.
The ones listed are designed to give you a taste of what can be done with
itertools.
2)
intertools python documentation:
https://docs.python.org/3/library/itertools.html
---
Jeff Thompson
-----Original Message-----
From: pythonvis-bounce@xxxxxxxxxxxxx <pythonvis-bounce@xxxxxxxxxxxxx> On Behalf
Of Rich De Steno (Redacted sender "ironrock" for DMARC)
Sent: Thursday, April 23, 2020 12:13 PM
To: pythonvis@xxxxxxxxxxxxx
Subject: [pythonvis] Python Coding for Zilch or Farkle
Is anyone aware of any existing coding for the dice games Zilch or Farkle? I
would think that the coding for all the comparisons needed for six dice in
order to detect straights, multiple pairs, and so on, would be extensive and
complicated. I am trying to help an organization of blind users with such a
game.
Rich De Steno
List web page is
//www.freelists.org/webpage/pythonvis
To unsubscribe, send email to
pythonvis-request@xxxxxxxxxxxxx with "unsubscribe" in the Subject field.
List web page is
//www.freelists.org/webpage/pythonvis
To unsubscribe, send email to
pythonvis-request@xxxxxxxxxxxxx with "unsubscribe" in the Subject field.