Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wrote script to generate the write up.
- Loading branch information
uberj
committed
Nov 18, 2011
1 parent
6c59902
commit 289f216
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|