#!/bin/bash

echo ========= Chapter 2 ==========
(cd ../02-complexity/projects/final; dart pub get)
(cd ../02-complexity/projects/starter; dart pub get)

echo ========= Chapter 3 ==========
(cd ../03-basic-data-structures-in-dart/projects/final; dart pub get)
(cd ../03-basic-data-structures-in-dart/projects/starter; dart pub get)

echo ========= Chapter 4 ==========
(cd ../04-stacks/projects/final; dart pub get)
(cd ../04-stacks/projects/starter; dart pub get)
(cd ../04-stacks/projects/challenge; dart pub get)

echo ========= Chapter 5 ==========
(cd ../05-linked-lists/projects/final; dart pub get)
(cd ../05-linked-lists/projects/starter; dart pub get)
(cd ../05-linked-lists/projects/challenge; dart pub get)

echo ========= Chapter 6 ==========
(cd ../06-queues/projects/final; dart pub get)
(cd ../06-queues/projects/starter; dart pub get)
(cd ../06-queues/projects/challenge; dart pub get)

echo ========= Chapter 7 ==========
(cd ../07-recursion/projects/final; dart pub get)
(cd ../07-recursion/projects/starter; dart pub get)
(cd ../07-recursion/projects/challenge; dart pub get)

echo ========= Chapter 8 ==========
(cd ../08-trees/projects/final; dart pub get)
(cd ../08-trees/projects/starter; dart pub get)
(cd ../08-trees/projects/challenge; dart pub get)

echo ========= Chapter 9 ==========
(cd ../09-binary-trees/projects/final; dart pub get)
(cd ../09-binary-trees/projects/starter; dart pub get)
(cd ../09-binary-trees/projects/challenge; dart pub get)

echo ========= Chapter 10 ==========
(cd ../10-binary-search-trees/projects/final; dart pub get)
(cd ../10-binary-search-trees/projects/starter; dart pub get)
(cd ../10-binary-search-trees/projects/challenge; dart pub get)

echo ========= Chapter 11 ==========
(cd ../11-avl-trees/projects/final; dart pub get)
(cd ../11-avl-trees/projects/starter; dart pub get)
(cd ../11-avl-trees/projects/challenge; dart pub get)

echo ========= Chapter 12 ==========
(cd ../12-tries/projects/final; dart pub get)
(cd ../12-tries/projects/starter; dart pub get)
(cd ../12-tries/projects/challenge; dart pub get)

echo ========= Chapter 13 ==========
(cd ../13-binary-search/projects/final; dart pub get)
(cd ../13-binary-search/projects/starter; dart pub get)
(cd ../13-binary-search/projects/challenge; dart pub get)

echo ========= Chapter 14 ==========
(cd ../14-heaps/projects/final; dart pub get)
(cd ../14-heaps/projects/starter; dart pub get)
(cd ../14-heaps/projects/challenge; dart pub get)

echo ========= Chapter 15 ==========
(cd ../15-priority-queues/projects/final; dart pub get)
(cd ../15-priority-queues/projects/starter; dart pub get)
(cd ../15-priority-queues/projects/challenge; dart pub get)

echo ========= Chapter 16 ==========
(cd ../16-o-n-sorting-algorithms/projects/final; dart pub get)
(cd ../16-o-n-sorting-algorithms/projects/starter; dart pub get)
(cd ../16-o-n-sorting-algorithms/projects/challenge; dart pub get)

echo ========= Chapter 17 ==========
(cd ../17-merge-sort/projects/final; dart pub get)
(cd ../17-merge-sort/projects/starter; dart pub get)
(cd ../17-merge-sort/projects/challenge; dart pub get)

echo ========= Chapter 18 ==========
(cd ../18-radix-sort/projects/final; dart pub get)
(cd ../18-radix-sort/projects/starter; dart pub get)
(cd ../18-radix-sort/projects/challenge; dart pub get)

echo ========= Chapter 19 ==========
(cd ../19-heap-sort/projects/final; dart pub get)
(cd ../19-heap-sort/projects/starter; dart pub get)
(cd ../19-heap-sort/projects/challenge; dart pub get)

echo ========= Chapter 20 ==========
(cd ../20-quicksort/projects/final; dart pub get)
(cd ../20-quicksort/projects/starter; dart pub get)
(cd ../20-quicksort/projects/challenge; dart pub get)

echo ========= Chapter 21 ==========
(cd ../21-graphs/projects/final; dart pub get)
(cd ../21-graphs/projects/starter; dart pub get)
(cd ../21-graphs/projects/challenge; dart pub get)

echo ========= Chapter 22 ==========
(cd ../22-breadth-first-search/projects/final; dart pub get)
(cd ../22-breadth-first-search/projects/starter; dart pub get)
(cd ../22-breadth-first-search/projects/challenge; dart pub get)

echo ========= Chapter 23 ==========
(cd ../23-depth-first-search/projects/final; dart pub get)
(cd ../23-depth-first-search/projects/starter; dart pub get)
(cd ../23-depth-first-search/projects/challenge; dart pub get)

echo ========= Chapter 24 ==========
(cd ../24-dijkstras-algorithm/projects/final; dart pub get)
(cd ../24-dijkstras-algorithm/projects/starter; dart pub get)
(cd ../24-dijkstras-algorithm/projects/challenge; dart pub get)