|
|
@ -1,5 +1,8 @@
|
|
|
|
|
|
|
|
using QwirkleClassLibrary.Games;
|
|
|
|
|
|
|
|
using QwirkleClassLibrary.Players;
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Text;
|
|
|
|
using System.Text;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using System.Threading.Tasks;
|
|
|
@ -8,8 +11,23 @@ namespace Qwirkle.Views;
|
|
|
|
|
|
|
|
|
|
|
|
public partial class ScoreboardLine : ContentView
|
|
|
|
public partial class ScoreboardLine : ContentView
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
public ReadOnlyDictionary<Player, int> scoreboard = ((App)App.Current!).Game.ScoreBoard;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<string> nameTags = scoreboard.Keys.ToList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<int> nbPoints = scoreboard.Values.ToList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Dictionary<Player, int> modifiableDictionary = new Dictionary<Player, int>(scoreboard);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static readonly BindableProperty ScoreboardLineProperty = BindableProperty.Create("ScoreBLine", typeof(ScoreboardLine), typeof(object));
|
|
|
|
|
|
|
|
|
|
|
|
public ScoreboardLine()
|
|
|
|
public ScoreboardLine()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
InitializeComponent();
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
|
|
BindingContext = scoreboard;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|