Ajout d'une correction possible

This commit is contained in:
Grizouille
2025-12-12 09:10:08 +01:00
parent 6e2c554af9
commit 7cec5696dc
28 changed files with 828 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
namespace MiniJeuxFinal.Games.PierrePapierCiseaux.Actions
{
public interface IActionPpc : IAction
{
bool ToWin(IActionPpc other);
}
}

View File

@@ -0,0 +1,12 @@
namespace MiniJeuxFinal.Games.PierrePapierCiseaux.Actions
{
public class PaperAction : IActionPpc
{
public string Name => "Papier";
public bool ToWin(IActionPpc other)
{
return other is not ScissorsAction;
}
}
}

View File

@@ -0,0 +1,12 @@
namespace MiniJeuxFinal.Games.PierrePapierCiseaux.Actions
{
public class ScissorsAction : IActionPpc
{
public string Name => "Ciseaux";
public bool ToWin(IActionPpc other)
{
return other is not StoneAction;
}
}
}

View File

@@ -0,0 +1,12 @@
namespace MiniJeuxFinal.Games.PierrePapierCiseaux.Actions
{
public class StoneAction : IActionPpc
{
public string Name => "Pierre";
public bool ToWin(IActionPpc other)
{
return other is not PaperAction;
}
}
}