Git Product home page Git Product logo

dungeoncrawlercpp's Introduction

"Dungeon Crawler Simulator" - Introductory C++ study project.

The game runs on the console, and simulates battles between the player and a number of enemies. The application starts by asking the user to choose a name for their character. Then it asks the user to choose the number of enemies they want to face. Each enemy has their stats randomly assigned within a reasonable range. The app creates a dynamic array with all these enemies, and iterates over it, simulating a combat between the player and the enemy, until one of the two dies. When the player dies or the list of enemies ends, the game ends, and inform the following:

  • If the player won or died

  • How many enemies of each size did the player kill, and how many weren’t killed.

Example: You lose! Slain Enemies: Big: 3/7 Medium: 7/14 Small: 13/20

Goal

This assignment has as main purpose to put into practice the initial ideas that were introduced. The secondary purpose is to familiarize a bit with the standard C++ library, and use Google to search for solutions in this new language.

Requirements

  • Define at least two classes: Character and Enemy, and one enum Sizes (These types must be separated into .h files)

  • Enemies must contain at least the following attributes (which must be randomly drawn): Health, Damage, Size (enum)

  • Do not create Enemies within a for, pre-ally all enemies in a dynamic collection (remember that it will be necessary to know the total of enemies of each type)

  • Do not make any explicit allocation on the heap. Keep everything in the stack

  • Encapsulate combat logic within a Battle method

  • This method should receive character and enemy, and be able to manipulate them without making copies

dungeoncrawlercpp's People

Contributors

helomdrs avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.