Everything so far

//includes basic functions to save time
#include <iostream>

//decided to declare variables before main function because I like to tweak things
int rings = 9;
int ringOfHell = 0;
int ringsRemaining = rings-ringOfHell;

//main function includes opening dialogue for game, formatted to make text more engaging.
int main()
{

//Scene description
    std::cout << " " << std::endl;
    std::cout << "You awaken cold and confused, sweating from every pore." 
    << std::endl;
    std::cout << "A Voice echoes:" << std::endl;
    std::cout << " " << std::endl;

//dialogue
    std::cout << "  Welcome to the first ring of Hell" << std::endl;
    std::cout << "  You will be tested and tried" << std::endl;
    std::cout << "  Answer the questions correctly to move on" << std::endl;
    std::cout << "  Answer incorrectly and spend eternity" << std::endl;
    std::cout << "  Hopelessly trying to escape." << std::endl;
    std::cout << " " << std::endl;

//scene
    std::cout << "You feel the presence leave, you are completely alone."
     << std::endl;
    std::cout << " "  << std::endl;

//scene cont
    std::cout << "A familiar figure from your past life appears."
     << std::endl;
    std::cout << "They ask:" << std::endl;
    std::cout << " " << std::endl;

//prompt dialogue

//still screwing with everything I'm sure most of the stuff down here will be altered and moved out of the main function.
    ringOfHell =+1;
    ringsRemaining = rings-ringOfHell;

//Eventually this will read right and will prompt the player to choose whether or not to risk their status by continuing.
    if (ringsRemaining >= 1 <<
        std::cout << ringsRemaining <<
        std::cout << " rings remain";)
    else std::cout << "Congratulations, You're in Purgatory. Continue?";

//really enjoying the errors I'm getting from not waiting to learn how to write if/else statements
    return 0;
}```
1 Like

Privacy & Terms