Skip to content

Commit

Permalink
white space and comment changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
uberj committed Nov 18, 2011
1 parent 289f216 commit bcb5c0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gen_report.sh
Expand Up @@ -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
}

Expand Down
3 changes: 1 addition & 2 deletions nqueens.py
Expand Up @@ -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))

Expand Down

0 comments on commit bcb5c0a

Please sign in to comment.