Add References to git
This commit is contained in:
23
info/Minesweeper2/MinesweeperSolver/SolverAction.cs
Normal file
23
info/Minesweeper2/MinesweeperSolver/SolverAction.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user