How to resolve the algorithm Pig the dice game/Player step by step in the Phix programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Pig the dice game/Player step by step in the Phix programming language

Table of Contents

Problem Statement

Create a dice simulator and scorer of Pig the dice game and add to it the ability to play the game to at least one strategy.

As a stretch goal:

The game of Pig is a multiplayer game played with a single six-sided die. The object of the game is to reach 100 points or more. Play is taken in turns. On each person's turn that person has the option of either

Let's start with the solution: