walliuswilliam / machine-learning

0 stars 0 forks source link

eight_queens_steepest_descent_optimizer.py #13

Closed RavenHex1296 closed 3 years ago

RavenHex1296 commented 3 years ago

At the last two lines of your eight_queens_steepest_descent_optimizer, you can actually combine the two prints to get print('n =', n, ':', '\n', 'optimized board', steepest_descent_optimizer(n), '\n'). It does the same thing and is a little harder to read, but it does get rid of the use of print twice. If you think it is more readable as is though, feel free to ignore this

walliuswilliam commented 3 years ago

thanks, i think its easier for me to understand as is, but i appreciate the tip