diff --git a/Casino/Slots.xaml b/Casino/Slots.xaml
index 9787a1b..88288dc 100644
--- a/Casino/Slots.xaml
+++ b/Casino/Slots.xaml
@@ -62,7 +62,7 @@
-
+
diff --git a/Casino/Slots.xaml.cs b/Casino/Slots.xaml.cs
index 2ac3e80..87ca156 100644
--- a/Casino/Slots.xaml.cs
+++ b/Casino/Slots.xaml.cs
@@ -72,11 +72,12 @@ namespace Casino
}
private async Task Spin()
{
+ int[,] currentSlot = new int[3, 6];
users[MainWindow.currentUser].Geld += 100;
- for (int i = 0; i < 50; i++)
+ for (int i = 0; i < 15; i++)
{
- int[,] currentSlot = new int[6, 3];
- for (int j = 6; j<_bilder.Count;j--)
+
+ for (int j = 5; j>=0;j--)
{
int randomBild = _random.Next(0, AlleBilder.Count);
@@ -94,9 +95,9 @@ namespace Casino
}
else
{
- currentSlot[1, j] = currentSlot[0, j];
- LoadCard(_bilder[j + 12], currentSlot[1, j]);
currentSlot[2, j] = currentSlot[1, j];
+ LoadCard(_bilder[j + 12], currentSlot[1, j]);
+ currentSlot[1, j] = currentSlot[0, j];
LoadCard(_bilder[j + 6], currentSlot[0, j]);
currentSlot[0, j] = randomBild;
LoadCard(_bilder[j], randomBild);
@@ -114,6 +115,7 @@ namespace Casino
private async void Spin(object sender, RoutedEventArgs e)
{
await Spin();
+ users[MainWindow.currentUser].Geld++;
}
private void Hauptmenue(object sender, RoutedEventArgs e)