Adventurers are searching for treasures 💎 in the new world 🌍 !
Explanation:
- "/V\" : Represents the mountains
- ",,," : Represents the plains
- "[x]" : Represents the amount of treasures
- "\o/" : Represents the adventurers
-
🖥️ Set your Virtual Environment :
# Download venv librairy apt-get install python3-venv -y # Create your venv py -m venv my_venv # Activate your venv . venv/bin/activate
For more information, go to Python Virtual Environment Official Documentation.
-
📦 Install the project dependencies
pip install parameterized pip install nose2
-
🚀 To start the project, simply run bellow commands:
python main.py
-
Result:
$ py main.py Input: C - 3 - 4 M - 1 - 0 M - 2 - 1 T - 0 - 3 - 2 T - 1 - 3 - 3 A - Lara - 1 - 1 - S - AADADAGGA Output: C - 3 - 4 M - 1 - 0 M - 2 - 1 T - 1 - 3 - 2 A - Lara - 0 - 3 - S - 3
-
-
🤖 To run the tests, simply run bellow commands:
python -m unittest discover # or nose2
-
📁 To use the file argument, run:
python main.py -f <path to the file>
- Result: It will store the result in
results.txt
- Result: It will store the result in
Old version 1.0: