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.
26 lines
635 B
26 lines
635 B
using CoreLibrary;
|
|
using CoreLibrary.Events;
|
|
using CoreLibrary.Regles;
|
|
|
|
namespace MauiSpark.Pages;
|
|
|
|
public partial class Mode : ContentPage
|
|
{
|
|
public Mode()
|
|
{
|
|
NavigationPage.SetHasNavigationBar(this, false);
|
|
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void QuandReglesClassiques(Object? sender, EventArgs e)
|
|
{
|
|
Partie partie = new Partie(new ReglesClassiques());
|
|
|
|
partie.DemanderNom += new ConnexionPage().QuandDemanderNom;
|
|
partie.NouveauTour += new Plateau().QuandNouveauTour;
|
|
partie.PartieTerminee += new Victoire().QuandPartieTerminee;
|
|
|
|
partie.Jouer();
|
|
}
|
|
} |