Changement de la classe HowMuch en HowMany (faute d'anglais)

pull/47/head
Remi NEVEU 1 year ago
parent 54d75d3078
commit 3c534a9e9b

@ -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))

Loading…
Cancel
Save