Move accepted actions to ActionSet

This commit is contained in:
Asriel Camora
2023-11-04 11:01:15 -07:00
parent ac109ae711
commit 2f727f76cd
4 changed files with 49 additions and 51 deletions
+3 -3
View File
@@ -8,8 +8,8 @@ public class ActionSetTests
[TestMethod]
public void TestAcceptedActions()
{
var actions = Craftimizer.Solver.Simulator.AcceptedActions;
var lut = Craftimizer.Solver.Simulator.AcceptedActionsLUT;
var actions = ActionSet.AcceptedActions;
var lut = ActionSet.AcceptedActionsLUT;
Assert.IsTrue(actions.Length <= 32);
foreach (var i in Enum.GetValues<ActionType>())
@@ -123,7 +123,7 @@ public class ActionSetTests
{
var action = set.SelectRandom(rng);
Assert.IsTrue(actions.Contains(action));
CollectionAssert.Contains(actions, action);
counts[action] = counts.GetValueOrDefault(action) + 1;
}