Permalink
Browse files

white space and comment changes.

  • Loading branch information...
1 parent 289f216 commit bcb5c0adc8954c074266c6e70d7d434e46109899 uberj committed Nov 18, 2011
Showing with 2 additions and 3 deletions.
  1. +1 −1 gen_report.sh
  2. +1 −2 nqueens.py
View
2 gen_report.sh
@@ -19,7 +19,7 @@ explain_homework(){
echo "What follows is the number of unique solutions to the N-Queens problem calculated"
echo "for a N X N board. N starts at 1 and goes up to 9."
echo
- echo "Enjoy the show!"
+ echo "Enjoy the show! (This report was brought to you by BASH)."
echo
}
View
3 nqueens.py
@@ -28,9 +28,8 @@ def do_nqueens( row, n, board, state ):
if valid_move( row, col, board, n ):
mark( row, col, board )
state.append((row,col))
-
+ # Again!
do_nqueens( row+1, n, board, state )
-
unmark( row, col, board )
state.remove((row,col))

0 comments on commit bcb5c0a

Please sign in to comment.