如果掷红色骰子的结果为 1,则有六个可能的结果,每个结果取决于蓝色骰子的一面。
If the red die lands on a 1, there are six possible results, one for each side of the blue die.
让我们先从简单的部分入手:掷一个六面骰子。
Let's start with something simple: rolling a single six-sided die.
对于本例,您将构建一个在掷两个六面骰子(2d6)时确定可能结果的计算器。
For this example, you will build a calculator that determines possible outcomes when rolling two six-sided dice (2d6).
应用推荐