Jump to content

Snake and ladder: Difference between revisions

m
→‎{{header|C sharp|C#}}: Fixed bug where only first variable was referenced in output
(Added Algol 68)
m (→‎{{header|C sharp|C#}}: Fixed bug where only first variable was referenced in output)
Line 429:
while (true) {
int roll = rand.Next(1, 6);
Console.Write("Player {0}, on square {01}, rolls a {02}", player, square, roll);
if (square + roll > 100) {
Console.WriteLine(" but cannot move.");
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.