Skip to main content
Became Hot Network Question
Tweeted twitter.com/StackCodeReview/status/1106797278256353281
edited body
Source Link
Justin
  • 131
  • 1
  • 1
  • 4

I would just like to know if there is a better way of writing my code to make it look cleaner, or if there possibly any concerns that might cause me issues down the road when I add more functionality to the game. Seeing as I am a beginner to c++C++, I am not incredibly great at determining whether my code is optimal or not.

I would just like to know if there is a better way of writing my code to make it look cleaner, or if there possibly any concerns that might cause me issues down the road when I add more functionality to the game. Seeing as I am a beginner to c++, I am not incredibly great at determining whether my code is optimal or not.

I would just like to know if there is a better way of writing my code to make it look cleaner, or if there possibly any concerns that might cause me issues down the road when I add more functionality to the game. Seeing as I am a beginner to C++, I am not incredibly great at determining whether my code is optimal or not.

added 921 characters in body
Source Link
Justin
  • 131
  • 1
  • 1
  • 4

The values of the materials, weapons, and spells are representing the amount of damage points each does for further and future calculations with the characters stats later in the game.

The code itself essentially allows you to input a characters name. Then, the strength, stamina, and intellect is randomly generated so that your character build is different at the beginning of each game. Then, once that has finished, the code takes into account the weapon type, the material of the weapon, the spell type and adds additional damage based on the players stats.

I would just like to know if there is a better way of writing my code to make it look cleaner, or if there possibly any concerns that might cause me issues down the road when I add more functionality to the game. Seeing as I am a beginner to c++, I am not incredibly great at determining whether my code is optimal or not.

The values of the materials, weapons, and spells are representing the amount of damage points each does for further and future calculations with the characters stats later in the game.

The code itself essentially allows you to input a characters name. Then, the strength, stamina, and intellect is randomly generated so that your character build is different at the beginning of each game. Then, once that has finished, the code takes into account the weapon type, the material of the weapon, the spell type and adds additional damage based on the players stats.

I would just like to know if there is a better way of writing my code to make it look cleaner, or if there possibly any concerns that might cause me issues down the road when I add more functionality to the game. Seeing as I am a beginner to c++, I am not incredibly great at determining whether my code is optimal or not.

deleted 20 characters in body; edited title
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238

Adventure Game (Text Basedtext based) c++in C++

So I'm working on a simple text based adventure game. I've just finished working on the character creation portion. The code works perfectly fine when run, but I would just like to get some feedback to ensure that it checks off from a professional and efficient standpoint. Thanks!

Code:

Adventure Game (Text Based) c++

So I'm working on a simple text based adventure game. I've just finished working on the character creation portion. The code works perfectly fine when run, but I would just like to get some feedback to ensure that it checks off from a professional and efficient standpoint. Thanks!

Code:

Adventure Game (text based) in C++

I'm working on a simple text based adventure game. I've just finished working on the character creation portion. The code works perfectly fine when run, but I would just like to get some feedback to ensure that it checks off from a professional and efficient standpoint.

Source Link
Justin
  • 131
  • 1
  • 1
  • 4
Loading