Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is _wrong_ with Python? a.k.a. PoR probabilities
#9
We have just proven that we do not deserve what we have.

Anyway.

Pool rolls. They derive from pools. Pools have 1 to 11 dice. They have all those rolls. They have a means of determining all those successes from those rolls. So let's see if I can figure out this inheritance stuff, if it's necessary.

class Pool(poolroll):
pool = []
def __init__(self, oldpool, newdie, maybe other stuff)
self.pool = oldpool.pool[:]
self.pool.append(newdie)
self.pool.sort() #largest die to the right, add pool.reverse() to put it to the left.

for




You know. Suddenly I realize just how unimportant this is right now.
Getting me free admission into gaming conventions for a decade
Reply


Messages In This Thread
RE: What is _wrong_ with Python? - by Kersus - 10-31-2016, 01:00 PM
RE: What is _wrong_ with Python? - by Kersus - 11-03-2016, 03:56 PM
RE: What is _wrong_ with Python? - by Oedipussy Rex - 11-09-2016, 05:03 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)