Add References to git

This commit is contained in:
2023-09-28 20:23:18 +08:00
parent 4d51eb339c
commit 50b5f8c2c1
276 changed files with 56093 additions and 2 deletions

View File

@ -0,0 +1,23 @@
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);
}
}
}