Skip to content

Commit 169a396

Browse files
committed
removed debug logs
1 parent 463bd90 commit 169a396

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/switch-game-mcts.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,15 @@ const mcts = (rootState, iterations = 10000, maxDepth = 10) => {
127127
};
128128

129129
const solve = (switchState) => {
130-
console.log("-----------------");
131-
console.log("Input switch state:", switchState);
130+
// console.log("-----------------");
131+
// console.log("Input switch state:", switchState);
132132
let initialState = new Map();
133133
switchState.forEach((switchItem) => {
134134
let switchIndex = parseInt(switchItem.switchName.replace("switch", ""));
135135
let isOn = switchItem.isOn;
136136
initialState.set(switchIndex, isOn);
137137
});
138-
console.log("Initial state:", initialState);
138+
// console.log("Initial state:", initialState);
139139

140140
// limitations
141141
const iterations = 10000;
@@ -144,8 +144,8 @@ const solve = (switchState) => {
144144
// TRIGGER MCTS
145145
let result = mcts(initialState, iterations, maxDepth);
146146

147-
console.log("Solution sequence:", result);
148-
console.log("-----------------");
147+
// console.log("Solution sequence:", result);
148+
// console.log("-----------------");
149149
return result;
150150
};
151151

0 commit comments

Comments
 (0)