|
|
@ -9,7 +9,7 @@ namespace Models.Rules
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public class ruleBox
|
|
|
|
public class ruleBox
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public int HowMuch(Cell playerChoice, List<Cell> cells)
|
|
|
|
public int HowMany(Cell playerChoice, List<Cell> cells)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
foreach(var pos in cells)
|
|
|
|
foreach(var pos in cells)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -27,7 +27,7 @@ namespace Models.Rules
|
|
|
|
|
|
|
|
|
|
|
|
public void SetValueAndPenalty(int valueChoice, Cell playerChoice, List<Cell> cells)
|
|
|
|
public void SetValueAndPenalty(int valueChoice, Cell playerChoice, List<Cell> cells)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int val = HowMuch(playerChoice, cells);
|
|
|
|
int val = HowMany(playerChoice, cells);
|
|
|
|
foreach (var pos in cells)
|
|
|
|
foreach (var pos in cells)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (pos.Equals(playerChoice))
|
|
|
|
if (pos.Equals(playerChoice))
|
|
|
|