"Machine learning combat" python3 perfect running code