Program + Mensch-ärgere-Dich-nicht
parent
9fc4489559
commit
ea35a41bc4
|
|
@ -0,0 +1,21 @@
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace Exercises_C_Sharp.Sonderaufgaben
|
||||||
|
{
|
||||||
|
class Exercise_6
|
||||||
|
{
|
||||||
|
//Schreiben Sie eine Mensch-ärgere-Dich-nicht. Folgende Regeln sollten beachtet werden:
|
||||||
|
// - Um eine Figur auf das Spielfeld setzen zu dürfen, muss man eine 6 Würfeln.
|
||||||
|
// - Beim Würfeln einer 6 darf der Spieler nochmal würfeln
|
||||||
|
// - Kann der Spieler einen anderen Stein schmeißen, so muss er das auch
|
||||||
|
// - Programmieren Sie einen Computer-Gegner dazu, gegen den man spielen kann (auch gerne 3 Gegner)
|
||||||
|
|
||||||
|
public static void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -621,7 +621,8 @@ namespace Exercises_C_Sharp
|
||||||
{
|
{
|
||||||
new(){Name = "Aufgabe 1", Method = Exercises_C_Sharp.E42_Interfaces.Exercise_1.Start},
|
new(){Name = "Aufgabe 1", Method = Exercises_C_Sharp.E42_Interfaces.Exercise_1.Start},
|
||||||
new(){Name = "Aufgabe 2", Method = Exercises_C_Sharp.E42_Interfaces.Exercise_2.Start},
|
new(){Name = "Aufgabe 2", Method = Exercises_C_Sharp.E42_Interfaces.Exercise_2.Start},
|
||||||
new(){Name = "Aufgabe 3", Method = Exercises_C_Sharp.E42_Interfaces.Exercise_3.Start}
|
new(){Name = "Aufgabe 3", Method = Exercises_C_Sharp.E42_Interfaces.Exercise_3.Start},
|
||||||
|
new(){Name = "Aufgabe 4", Method = Exercises_C_Sharp.E42_Interfaces.Exercise_4.Start}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//************************
|
//************************
|
||||||
|
|
@ -670,7 +671,8 @@ namespace Exercises_C_Sharp
|
||||||
new(){Name = "Schiffe versenken", Method = Exercises_C_Sharp.Sonderaufgaben.Exercise_2.Start},
|
new(){Name = "Schiffe versenken", Method = Exercises_C_Sharp.Sonderaufgaben.Exercise_2.Start},
|
||||||
new(){Name = "Memory", Method = Exercises_C_Sharp.Sonderaufgaben.Exercise_3.Start},
|
new(){Name = "Memory", Method = Exercises_C_Sharp.Sonderaufgaben.Exercise_3.Start},
|
||||||
new(){Name = "Minesweeper", Method = Exercises_C_Sharp.Sonderaufgaben.Exercise_4.Start},
|
new(){Name = "Minesweeper", Method = Exercises_C_Sharp.Sonderaufgaben.Exercise_4.Start},
|
||||||
new(){Name = "Kniffel", Method = Exercises_C_Sharp.Sonderaufgaben.Exercise_5.Start}
|
new(){Name = "Kniffel", Method = Exercises_C_Sharp.Sonderaufgaben.Exercise_5.Start},
|
||||||
|
new(){Name = "Mensch ärgere Dich nicht", Method = Exercises_C_Sharp.Sonderaufgaben.Exercise_6.Start}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue