Files
basic-computer-games/61_Math_Dice/csharp
Martin Thoma e64fb6795c MAINT: Apply pre-commit
Remove byte-order-marker pre-commit check as there would be
many adjustments necessary
2022-03-05 09:29:23 +01:00
..
2022-03-05 09:29:23 +01:00

Original source downloaded from Vintage Basic

Conversion to Microsoft C#

Conversion Notes

  • There are minor spacing issues which have been preserved in this port.
  • This implementation uses switch expressions to concisely place the dice pips in the right place.
  • Random() is only pseudo-random but perfectly adequate for the purposes of simulating dice rolls.
  • Console width is assumed to be 120 chars for the purposes of centrally aligned the intro text.