Slot system Prototyp
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user