Files
2023-09-28 20:24:18 +08:00

24 lines
702 B
C#

using System;
using static MinesweeperControl.MinesweeperGame;
namespace MinesweeperSolver {
public class SolverAction : GameAction, IComparable<SolverAction> {
public readonly double safeProbability;
public readonly bool isDead;
//public readonly bool isExcluded;
public SolverAction(SolverTile tile, ActionType action, double safeprob) : base(tile.x, tile.y, action) {
this.safeProbability = safeprob;
this.isDead = tile.IsDead();
//this.isExcluded = tile.IsExcluded();
}
public int CompareTo(SolverAction other) {
return safeProbability.CompareTo(other.safeProbability);
}
}
}