diff --git a/Casino/Slot System.cs b/Casino/Slot System.cs new file mode 100644 index 0000000..e9074e7 --- /dev/null +++ b/Casino/Slot System.cs @@ -0,0 +1,41 @@ +using System; +using System.CodeDom.Compiler; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Casino +{ + public class Slot_System + { + int[,] slots = new int[3, 6]; + + + public async Task roll() + { + int counter =0; + while (counter<15) { + for (int i = 0; i < slots.GetLength(1); i++) + { + slots[2, i] = slots[1, i]; + slots[1, i] = slots[0, i]; + slots[0, i] = randomize(); + + } + counter++; + await Task.Delay(1000); + } + } + + + + private int randomize() + { + Random ran = new Random(); + int temp = ran.Next(2, 11); + + return 0; + } + } +}