Skip to content

Commit

Permalink
wrote script to generate the write up.
Browse files Browse the repository at this point in the history
  • Loading branch information
uberj committed Nov 18, 2011
1 parent 6c59902 commit 289f216
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions gen_report.sh
@@ -0,0 +1,29 @@
#!/bin/bash

# call do_homework()

do_homework(){
for i in 1 2 3 4 5 6 7 8 9
do
python nqueens.py "$i"
done
}

speak_to_ta(){
echo "Hello Nels (White Knight) Oscar."
echo "This is a \"concise report\"."
echo "============================="
}

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
}

speak_to_ta
explain_homework
do_homework

0 comments on commit 289f216

Please sign in to comment.