if (dice1 == dice2) or (dice1 == dice3) or (dice2 == dice1) or (dice2 == dice3)
or (dice3 == dice2) or (dice3 == dice1):
score = # no clue what to put here
Run Code Online (Sandbox Code Playgroud)
我需要找到办法;如果这些选项中的任何一个是正确的,那么将选择正确的选项并将骰子变量加在一起,例如两个或多个骰子是否相等?是的,那么score = sum of two equal dice。
真的很困惑,谁能提供帮助?