# data[].attributes.attachment_link.description
Powerful and simple online compiler, IDE, interpreter, and REPL. Code, compile, and run code in JavaScript, Python, Ruby, Java, Node.js, Go, Scheme, C, C#, C++, Lua, CoffeeScript and more programming languages.

# data[].attributes.attachment_link.readable_text
NavajowhiteGlamorousEnglishsetter-1

import random2 # learn more: https://python.org/pypi/random2
import math

get_away = random2.randrange(1,3)

hp = 10

def wolf_attack():
  wolf_attack_damage = random2.randrange(2,6)
  return wolf_attack_damage

def branch_attack():
  branch_attack_damage = random2.randrange(3,7)
  return branch_attack_damage

print("A flash of light overcomes you. The pain radiates in your head. The words ''You ate too much'' ring through your ears.")
print("\n" + "You awake in a dark forest, your head still aching from whatever happened before. You smell like farts. Ahead of you a dirt road travels deeper into the forest")

walk_down_road = int(input("\t" + "(1) Walk down the road" + "\n" + "\t" + "(2) Sleep for the night"))


if walk_down_road == 1:

  print("\n" + "You head down the road, limping and hoping that you'll find some sense of civilization.")

  print("Taking advantage of your feeble state, a wolf leaps out of the woods!")

  damage_delt = wolf_attack()
  hp = hp - damage_delt
  print("\n" + "_____Begin Battle!_____" + "\n" + "\n" + " > The wolf bites for " + str(damage_delt) + " damage")
  print(" > HP is " + str(hp))

  attack_wolf = int(input(" > Attack The Wolf?" + "\n" + "   (1) Yes" + "\n" + "   (2) No"))

  if attack_wolf == 1:
    damage_delt = branch_attack()
    print("\n > You pick up a branch and hit the wolf for " + str(damage_delt) + " damage!")
    if damage_delt >= 5:
      print(" > The wolf runs off scared!")
      print("\n" + "_____End Battle!_____")
    if damage_delt < 5:
      print(" > The wolf seems annoyed!")
      damage_delt = wolf_attack()
      hp = hp - damage_delt
      print(" > The wolf attacks again! It bites for " + str(damage_delt) + " damage!")
      print(" > HP is " + str(hp))
      attack_wolf = int(input(" > Attack The Wolf?" + "\n" + "   (1) Yes" + "\n" + "   (2) No"))
      print("You see a brook nearby, maybe it leads to a town?")
      follow_brook = int(input(" > (1) Follow the Brook" + "\n" + "   (2) Camp for the night"))
      if follow_brook == 1:
          print("You follow the brook, eventually it leads to a wood mill and house. The owner is nice enough to give you a horse and hospitality.")
      if follow_brook == 2:
          print("In the middle of the night you are awoken! You fear that it's another wolf, but it is a dog and his owner. The hunter brings you a horse and hospitality.")
      if attack_wolf == 1:
        damage_delt = branch_attack()
        print(" > You hit the wolf again for " + str(damage_delt) + " damage")
        print(" > The wolf runs off scared!")
        print("\n" + "_____End Battle!_____")

        print("You see a brook nearby, maybe it leads to a town?")
        follow_brook = int(input(" > (1) Follow the Brook" + "\n" + "   (2) Camp for the night"))
        if follow_brook == 1:
          print("You follow the brook, eventually it leads to a wood mill and house. The owner is nice enough to give you a horse and hospitality.")
        if follow_brook == 2:
          print("In the middle of the night you are awoken! You fear that it's another wolf, but it is a dog and his owner. The hunter brings you a horse and hospitality.")
  if attack_wolf == 2:

    if get_away == 1:
      print("You try to run but the wolf follows!")
      damage_delt = branch_attack()
      print("\n > You pick up a branch and hit the wolf for " + str(damage_delt) + " damage!")
      if damage_delt >= 5:
        print(" > The wolf runs off scared!")
        print("\n" + "_____End Battle!_____")
        print("You see a brook nearby, maybe it leads to a town?")
        follow_brook = int(input(" > (1) Follow the Brook" + "\n" + "   (2) Camp for the night"))
        if follow_brook == 1:
          print("You follow the brook, eventually it leads to a wood mill and house. The owner is nice enough to give you a horse and hospitality.")
        if follow_brook == 2:
          print("In the middle of the night you are awoken! You fear that it's another wolf, but it is a dog and his owner. The hunter brings you a horse and hospitality.")
      if damage_delt < 5:
        print(" > The wolf seems annoyed!")
        damage_delt = wolf_attack()
        hp = hp - damage_delt
        print(" > The wolf attacks again! It bites for " + str(damage_delt) + " damage!")
        print(" > HP is " + str(hp))
        attack_wolf = int(input(" > Attack The Wolf?" + "\n" + "   (1) Yes" + "\n" + "   (2) No"))
        if attack_wolf == 1:
          damage_delt = branch_attack()
          print(" > You hit the wolf again for " + str(damage_delt) + " damage")
          print(" > The wolf runs off scared!")
          print("\n" + "_____End Battle!_____")
          print("You see a brook nearby, maybe it leads to a town?")
          follow_brook = int(input(" > (1) Follow the Brook" + "\n" + "   (2) Camp for the night"))
          if follow_brook == 1:
            print("You follow the brook, eventually it leads to a wood mill and house. The owner is nice enough to give you a horse and hospitality.")
          if follow_brook == 2:
            print("In the middle of the night you are awoken! You fear that it's another wolf, but it is a dog and his owner. The hunter brings you a horse and hospitality.")
    if get_away == 2:
      print("You manage to run away from the wolf!")
      print("You see a brook nearby, maybe it leads to a town?")
      follow_brook = int(input(" > (1) Follow the Brook" + "\n" + "   (2) Camp for the night"))
      if follow_brook == 1:
        print("You follow the brook, eventually it leads to a wood mill and house. The owner is nice enough to give you a horse and hospitality.")
      if follow_brook == 2:
          print("In the middle of the night you are awoken! You fear that it's another wolf, but it is a dog and his owner. The hunter brings you a horse and hospitality.")


if walk_down_road == 2:
  print("You camp for the night")
  print("When you awake to a beautiful sunrise with beams of light cascading through the branches. You walk down the road and reach town.")

# data[].attributes.attachment_link.description
NavajowhiteGlamorousEnglishsetter-1 import random2 # learn more: https://python.org/pypi/random2 import math get_away = random2.randrange(1,3) hp = 10 def wolf_attack(): wolf_attack_damage = random2.randrange(2,6) return wolf_attack_damage def branch_attack(): branch_attack_damage = random2.randrange(3,7) return branch_attack_damage print("A flash of light overcomes you. The pain radiates in your head.

# data[].attributes.attachment_link.title
repl.it - Rock, Paper, Scissors-1 by @mrseeleywd

# data[].attributes.attachment_link.description
Powerful and simple online compiler, IDE, interpreter, and REPL. Code, compile, and run code in JavaScript, Python, Ruby, Java, Node.js, Go, Scheme, C, C#, C++, Lua, CoffeeScript and more programming languages.

# data[].attributes.attachment_link.title
repl.it - Choose Your Own Adventure Game by @ginnyiannello

# data[].attributes.attachment_link.description
Powerful and simple online compiler, IDE, interpreter, and REPL. Code, compile, and run code in JavaScript, Python, Ruby, Java, Node.js, Go, Scheme, C, C#, C++, Lua, CoffeeScript and more programming languages.

# data[].attributes.attachment_link.title
repl.it - Midtermproject by @Leah_Clements

# data[].attributes.attachment_link.description
Powerful and simple online compiler, IDE, interpreter, and REPL. Code, compile, and run code in JavaScript, Python, Ruby, Java, Node.js, Go, Scheme, C, C#, C++, Lua, CoffeeScript and more programming languages.