@@ -127,15 +127,15 @@ const mcts = (rootState, iterations = 10000, maxDepth = 10) => {
127127} ;
128128
129129const 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