Hi all this is my first post. I am a beginner in C++ and i came across a topic on this forum called Simple Terminal Game posted by Novak in Jan 2012. I would like to thank you for writing and sharing this code! This is exactly the sort of program i wanted to play around with, and iv had ALOT of fun tinckering with it.
(in this program there are 2 players that can attack each other. they each have 10hp, 2 attack power and 3 potions each that raises hp by 3.)
he posted this code:
[code]
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int player1HP = 10;
int player2HP = 10;
int player1ATK = 2;
int player2ATK = 2;
int potionSTR = 3;
int potionNUM1 = 3;
int potionNUM2 = 3;
int turn = 1;
Potions:
player 1's potion increases attack power by 3 points.
player 2's potion raises hp by 40
attack: player 1's attack decreases player 2's hp but also raises player 1's hp
by 2.
player 2's attack decreases player 1's hp but also raises player 2's hp
+ 7
I have also given them a new choice which is Special Attack. This gives them the option of hitting hard without healing. Each ability is slightly different.
Im not after any advice. I just wanted to show any newbies that read this how much fun they can have with very small changes to the code with a beginner will understand. Thanks again for this original post. At the moment I feel like a kid at christmas and will keep playing.