Skip to content
Snippets Groups Projects
README.md 1.83 KiB
Newer Older
Louise's avatar
Louise committed
Ether of Creatures
==================


### Description

Louise's avatar
Louise committed
"Saruman's Ether of Creatures" is a library for Linux in which a MonsterMash's player has a empty deck and tries to win up to 5 cards of Monsters from the Saruman's deck. It works by playing a simple game of Jokenpo, also known as Rock-Paper-Scissors. After 5 rounds of it, the player must leave with the cards won in order to keep playing on MonsterMash game.
Louise's avatar
Louise committed


### Configuration

Louise's avatar
Louise committed
Follow these steps to clone the project to your computer:
Louise's avatar
Louise committed

Louise's avatar
Louise committed
1. Access the diretory where you wish to clone the project to. For exemple: `cd ~/Documents/Projects`.
Louise's avatar
Louise committed
2. Clone the project with the following command on your terminal: `git clone http://[username]@projetos.imd.ufrn.br/louisestella/ether-of-creatures.git`.
Louise's avatar
Louise committed
3. Remember to replace`[username]` with your own username on Git Lab.
Louise's avatar
Louise committed


### Compilation

Louise's avatar
Louise committed
1. Access the main directory of the program using this command: `cd ~/ether-of-creatures`.
Louise's avatar
Louise committed
2. Now type `make` on the terminal and press ENTER.
3. The project has been compiled.
Louise's avatar
Louise committed


### Execution

Louise's avatar
Louise committed
1. If you are still in the main directory of the program, skip to the next step. Otherwise, access it.
2. Now type `build/dynamic_ether_of_creatures` and press ENTER.
Louise's avatar
Louise committed
3. There you go! The program is read to start.
Louise's avatar
Louise committed


### Extra Information

Louise's avatar
Louise committed
{ For Handerson:

1. Probabilidade das forças dos monstros: `saruman.cpp` (lines 29 to 43) - use of `rand()`;
2. Uso de construtores: `beast.cpp`, `fantastic.cpp`, `monster.cpp`, `winged.cpp`.
3. Uso de Alocação Dinâmica: `fileManipulation.hpp` (read from and write to files functions).
4. Uso do This: `fileManipulation.hpp` (line 22); and also on the craetures's constructors (each class: `beast.cpp`, `fantastic.cpp`, `monster.cpp`, `winged.cpp`); 
5. Sobrecarga de Funções: `beast.cpp`, `fantastic.cpp`, `monster.cpp`, `winged.cpp` (the getters and setters of the monsters's classes).