Skip to content

Adventurers are searching for treasures 💎 in the new world 🌍 !

Notifications You must be signed in to change notification settings

Manfred-Madelaine-pro/treasure-quest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🗺️ Treasure Quest ⛰️

Adventurers are searching for treasures 💎 in the new world 🌍 !

🎉 Examples

💎 Adventurers looking for treasures

Treasure Quest

Explanation:

  • "/V\" : Represents the mountains
  • ",,," : Represents the plains
  • "[x]" : Represents the amount of treasures
  • "\o/" : Represents the adventurers

🔌 Dependencies

  1. 🖥️ 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.

  2. 📦 Install the project dependencies

    pip install parameterized
    pip install nose2

⚡ Quick start

  1. 🚀 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
  2. 🤖 To run the tests, simply run bellow commands:

    python -m unittest discover
    # or
    nose2
  3. 📁 To use the file argument, run:

    python main.py -f <path to the file>
    • Result: It will store the result in results.txt

🕹️ More examples

Old version 1.0:

Treasure Quest

About

Adventurers are searching for treasures 💎 in the new world 🌍 !

Resources

Stars

Watchers

Forks

Languages