Continous Integration in der Praxis Gruppenarbeit
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
using MiniGames.Shared.Models; using System;
namespace MiniGames.Client.ViewModel { public class SchereSteinPapierEchseSpock { SchereSteinPapierEchseSpockModel RegelModel = new();
public string SpielerStein(int hand, int gegner) { if(hand == 0 && (gegner == 1 || gegner == 3)) { return RegelModel.erg[0].ToString(); } else if(hand == 0 && (gegner == 2 || gegner == 4)) { return RegelModel.erg[1].ToString(); } else { return RegelModel.erg[2].ToString(); } } } }
|