Skip to content
Snippets Groups Projects
Commit d5a55711 authored by SATTLER EMMA's avatar SATTLER EMMA
Browse files

Règlage problème rouge/bleu

parent 7cb702ac
Branches
Tags
No related merge requests found
......@@ -88,6 +88,8 @@ namespace Wanderer.view
private void btn_Click(object sender, EventArgs e)
{
Game.Instance.currentPlayerIndex = (Game.Instance.currentPlayerIndex + 1) % Game.Instance.Players.Count;
Player currentPlayer = Game.Instance.Players[Game.Instance.currentPlayerIndex];
Button b = (Button)sender;
Int32 i = Convert.ToInt32(b.Tag);
......@@ -127,9 +129,7 @@ namespace Wanderer.view
**/
private void update()
{
Game.Instance.currentPlayerIndex = (Game.Instance.currentPlayerIndex + 1) % Game.Instance.Players.Count;
Player currentPlayer = Game.Instance.Players[Game.Instance.currentPlayerIndex];
lblRefuge.Text = tbCouts[0].ToString();
lblChemins.Text = tbCouts[1].ToString();
lblClub.Text = tbCouts[2].ToString();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment