diff --git a/.gitignore b/.gitignore index 794e7c3..43d7344 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,5 @@ hs_err_pid* *.app **aima-python + +**.idea diff --git a/Projects/nqueens.zip b/Projects/nqueens.zip new file mode 100644 index 0000000..4723ff1 Binary files /dev/null and b/Projects/nqueens.zip differ diff --git a/Projects/nqueens/src/main.cpp b/Projects/nqueens/src/main.cpp index b13e752..5369a90 100644 --- a/Projects/nqueens/src/main.cpp +++ b/Projects/nqueens/src/main.cpp @@ -110,7 +110,8 @@ int main( int argc, char **argv ) { cout << argv[i] << endl; } - // First lets get the value of N + // I initially was going to use command line args but figured it's easier + // to just get user input for the time being. if ( ( argc < 2 ) | ( argc > 2 ) ) { cout << "Invalid argument count please pass an integer N" diff --git a/Projects/using-aima-code/setup.sh b/Projects/using-aima-code/setup.sh index 194d06d..666233c 100644 --- a/Projects/using-aima-code/setup.sh +++ b/Projects/using-aima-code/setup.sh @@ -1,17 +1,17 @@ # clone the repo -git clone https://github.com/aimacode/aima-python.git& +git clone https://github.com/aimacode/aima-python.git -cd aima-python& +cd aima-python # install dependencies -python3 -m pip install -r requirements.txt& +python3 -m pip install -r requirements.txt # downlaod the test data -git submodule init& -git submodule update& +git submodule init +git submodule update # install pytest -python3 -m pip install pytest& +python3 -m pip install pytest # test the code py.test