here is the task, I don't want anyone to do the coding for me. I just would really love if I got a starting point on how to begin this code. thank you. oh and this is in python program.
Zahra_1
0
Newbie Poster
Recommended Answers
Jump to PostHello Zahra!
I would make a Game class that holds the characters. Then I would make the characters that generates the attributes. The attributes are generated by rolling a dice.
Something like this:
# python 2 code import random class Dice(object): __slots__=("sides",) def __init__(self,sides): self.sides=sides def roll(self): …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.