SpielStrategien mit Interface und Enum
This commit is contained in:
41
src/Skirmish.cs
Normal file
41
src/Skirmish.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace WorldOfPeacecraft
|
||||
{
|
||||
class Skirmish
|
||||
{
|
||||
Random random = new Random();
|
||||
|
||||
public Skirmish()
|
||||
{
|
||||
}
|
||||
|
||||
public Decision getFirstMove()
|
||||
{
|
||||
return getNextMove();
|
||||
}
|
||||
|
||||
public Decision getNextMove()
|
||||
{
|
||||
int randomNumber = random.Next(0, 2);
|
||||
Decision bla;
|
||||
switch (randomNumber)
|
||||
{
|
||||
case 0:
|
||||
bla = Decision.SWORD;
|
||||
break;
|
||||
case 1:
|
||||
bla = Decision.MAGIC;
|
||||
break;
|
||||
case 2:
|
||||
default:
|
||||
bla = Decision.ALCHEMY;
|
||||
break;
|
||||
}
|
||||
return bla;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user