print() for Moves in range(0, 10): print("Move: " + str(Moves)) #Feed our brain the information and let it reach a decision InputNeuronsToActivate = NewCube.GetInputNeuronsToActivate() for NeuronID in InputNeuronsToActivate: NewBrain.InputNeurons[NeuronID].Activate( 0) #don't weight the starting gun HighestOutputNeuron = NewBrain.GetHighestOutputNeuron() print("Highest Output Neuron is: " + str(HighestOutputNeuron)) print("With Weight: " + str(NewBrain.OutputNeurons[HighestOutputNeuron].AccumulatedWeight)) #perform the move if HighestOutputNeuron == 1: NewCube.RotateWhiteFaceRight() elif HighestOutputNeuron == 2: NewCube.RotateWhiteFaceLeft() elif HighestOutputNeuron == 3: NewCube.RotateRedFaceRight() elif HighestOutputNeuron == 4: NewCube.RotateRedFaceLeft() elif HighestOutputNeuron == 5: NewCube.RotateBlueFaceRight() elif HighestOutputNeuron == 6: NewCube.RotateBlueFaceLeft() elif HighestOutputNeuron == 7: NewCube.RotateGreenFaceRight() elif HighestOutputNeuron == 8: NewCube.RotateGreenFaceLeft() elif HighestOutputNeuron == 9: