Hi all,
I need to create a program on python that:
At the start a 4 sided dice is thrown and a 12 sided dice is thrown to calculate two values for strength and skill the following method is used for each player:

  • Each attribute is originally set to 10.
  • The score on the 12 sided dice is divided by the score on the 4 sided dice and rounded down.
  • This value is added to the initial value.

This process is repeated twice for two characters Bob and James.
I also need the pseudo.

It looks like you just want us to do your homework for you.

Pseudo code is English that describes the steps needed (in English) to accomplish what you’re trying to do. Help us to help you by telling us what you think the answer to this part is, and we’ll help you along if you’re stuck.

There’s no excuse to not attempting this part, at the very least, because it doesn’t require any programming knowledge. Just think, logically, what steps are required to do what the assignment is asking for.

PRINT Character 1 is called Bob
PRINT Character 2 is called James
D1 = random number 0-5
D2 = random number 0-13
D3 = random number 0-5
D4 = random number 0-13
PRINT Matthew’s Skill is , STRING s1()
PRINT Matthew’s Strength is , STRING s2()
PRINT Michael’s Skill is , STRING s3()
PRINT Michael’s Strength is , STRING s4()
DEFINE FUNCTION s1():
    D2/D1 ROUND DOWN UNITS +10
DEFINE FUNCTION s3():
    D2/D1 ROUND DOWN UNITS +10
DEFINE FUNCTION s2():
    D2/D1 ROUND DOWN UNITS +10
DEFINE FUNCTION s4):
    D2/D1 ROUND DOWN UNITS +10

Don't know round down code on python here is pseudo

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.