Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Cr1TH1T

Pages: [1] 2
1
Scripting Languages / Pokemon text-based game.
« on: April 16, 2015, 09:20:28 pm »
I was tinker ing with some code and decided to make a pokemon game with python, I ran into a prolem though and now I can't figure out what is wrong with it.
CODE IS BELOW:

def pokemon_lab():
    print "You've just entered the Pokemon Lab! Before you lies a table with three Pokeballs."
    print "Do you take the Pokeball on the left, the right or in the center?"
    answer = raw_input("Type left, right or center and hit 'Enter'.").lower()
    if answer == "left" or answer == "l":
        print "The Water Type Pokemon, Squirtle, is quite the charmer!"
     
    elif answer == "right" or answer == "r":
        print "Of course! This is the Fire Type Pokemon, Charmander!"
    elif answer == "center" or answer == "c":
         print "Superb! You picked Bulbasaur, The Grass Type Pokemon!"
   
    else:
        print "You didn't pick a pokemon! Try again."
        pokemon_lab()


pokemon_lab()


def route_1():
    print "After leaving the Pokemon Lab, you embark on your journey. Leaving town, you take your first steps towards becoming a Pokemon Master."
    print "You see a path leading West, one leading to the North, and one leading East; Which way do you go?"
    answer = raw_input("Type west, east or north and hit 'Enter' to continue.").lower()
    if answer == "north" or answer == "n":
        print "You walk into a large clearing filled with tall grass."
       
    elif answer == "west" or answer == "w":
        print "You lock eyes with a Trainer standing next to a large Sitrus Berry tree!"
    elif answer == "east" or answer == "e":
        print "You continue down the path with the tall Berry trees around you blowing slightly in the wind."
    else:
        print "Pick a direction in order to continue your Journey!"
        route_1()


route_1()
def battle_c():
    print "As you walk into the clearing, a small Pidgy jumps from the trees and begins to attack!!! You hurriedly send out your Charmander to combat the encroaching bird pokemon!"
    print "Do you Attack, Run, or throw a pokeball?"
    answer == raw_input("Type Attack, Run, or Ball to continue.").lower()
    if answer == "Attack" or answer == "A":
        attack == raw_input("Type Ember, Scratch, Tail Whip, or Smokescreen and hit 'Enter'").lower()
        if attack == "Ember" or attack == "1":
            print "Your Charmander cries out as He uses Ember on the Wild Pidgey! Striking the brown bird pokemon in the chest it lets out an involuntary cry of pain as it falls to your victorious feet. Weakly, it peers up at you as if begging for mercy. To caught up in your celebration to notice you leave the decimated bird behind, its cries drawing other pokemon out who then proceed to silence the injured bird."
        elif attack == "Scratch" or attack == "2":
            print "Lunging at the Pidgey with rage burning in it's eyes it brutally cuts down the meek bird without mercy.YOu leave the bird's bloodied and beaten body behind you move along excited about having won your first battle."
        elif attack == "Tail Whip" or attack == "3":
            print "Your pokemon wags it's tail at the bird pokemon. Senseing an oppertunity to attack it visously tears at your pokemon eyes, causing it to make a gurgling sound as the bird succesfully rips your pokemon to pieces. It's bloodied beak slowly rises and the gore covered bird begins to step towards you it's intent quite clear."
            print "YOUR DEAD"
        elif attack == "Smokscreen" or attack == "4":
            print "Your fire type begins to pour toxic black smoke out of his mouth, suffocating all near by wildlife."
    elif answer == "Ball" or answer == "B":
        print "You dont got balls son!"
    elif answer == "Run" or answer == "R":
        print "Pansy"
        print "You paid dearly for your mistake YOUR DEAD"
    else:
        print "Make your freakin decison!"
    battle_c()
   
battle_c()

2
General discussion / Re: What do you eat?
« on: February 09, 2015, 10:25:00 pm »
I just eat when I can, don't have many opportunity's to eat a lot.

3
Beginner's Corner / Understanding Entity Relationship Diagraming
« on: February 03, 2015, 09:02:52 pm »
I just wanted to post what I have learned about ERD on here to see if I am correct so far.


Students
  • Student ID
  • First Name
  • Last Name
  • Address
  • City
  • State
  • Zip Code
  • E-Mail[/l][/l][/l][/l][/l][/l]
   
   



    • Registration
      • Student ID
      • Course ID
      • Registration Date



      Graduate
      • Student ID
      • Undergraduate Graduation Form
      • Undergraduate Major
      • Undergraduate GPA



      Undergraduate
      • Student ID
      • High-School Graduation Form
      • High-School Grade Point Average

      Courses
      • Course ID
      • Course Name
      • Course Designation
      • Semester ID
      • Location



      The glowing Attributes are the Primary Key's for the ERD. I am currently working on the diagram for this project so I will post it once it's finished. I will be using crow's feet notation.
EDIT:




I am going to post a diagram today. I use both Oracle Academy and Access as well as Visio. I use the 2013 edition.





Additional Edit:


The File Name is University and is posted.
[/list]

4
I'm half way through the Python course. I came here to learn more about both computing and unconventional practices that work. I appreciate all of the replies and am doing my best to learn as much as possible as fast. I repeat, I am really appreciate the responses I got and am here to learn. Not make friends, That's it.


Love


                        Cr1TH1T




5
Beginner's Corner / Re: SQL Key Terms Fun Quiz!!!!
« on: February 02, 2015, 08:47:23 pm »
 ;D ;D ;D ;D


Everyone gets le cookie.

6
Beginner's Corner / Re: SQL Key Terms Fun Quiz!!!!
« on: January 27, 2015, 08:30:37 pm »
rigggghhht... he either doesnt know the correct answers or didn't bother to read. at this point it could really be either or.
The main questions are correct. I have checked my reference and made sure. No worries. Btw the reference is Oracle.


ADDITION:
Also, Just wanted to clarify that while this is a public forum, I would like you guys to keep in mind that I have only been here for about a week and I am just trying to make something fun, albeit trivial, but fun nonetheless. Also, while the initial response was negative I will continue to post these if I find something a little challenging for beginners and experts alike. Just basically the stuff i learn myself as the class progresses over the length of the semester. I appreciate all the comments and the Cookies will be awarded to the person who answers all questions correctly FIRST. The bonus question is separate.

7
Beginner's Corner / Re: SQL Key Terms Fun Quiz!!!!
« on: January 27, 2015, 04:57:38 pm »
To start off, FUCK YOU STOP DOUBLE POSTING ANYWHERE


1.) What is an FK? Define the acronym and then define the what it does!
Foreign Key, basically a shitty pointer in one table to a value in another table. If the two tables aren't synced up you have problems.

 2.) What is a Null?
A null is exactly that: null void, nada, zip. Not to be confused with the integer 0, even if they are sometimes used interchangeably elsewhere. Basically an 'empty' value.

3.) What is a Datatype?
The type of data moron. Got yo strings. Got yo chars. Got yo integers. Etc. Data is stored in different memory sizes, and a datatype is basically a human convention to denote the memory size of a data value without explicit declaration while conveniently describing how a piece of data should be handled. Pretty universal concept here shawty.

4.) What does the acronym PK mean?

Primary Key, what a FK references.
*****BONUS QUESTION*****
1.) Give an Example of a Entity Relationship!!!! [Equals additional Cookies!]
Dogs have Nipples
WINNER WINNER CHICKEN DINNER. Except for the Bonus. You get a COOKIE!!!

8
Beginner's Corner / Re: SQL Key Terms Fun Quiz!!!!
« on: January 26, 2015, 11:01:45 pm »
Appreciate the redirect there Captain!

9
Beginner's Corner / Re: SQL Key Terms Fun Quiz!!!!
« on: January 26, 2015, 10:56:14 pm »
Was just trying to accessible, it's something that I'm learning. Plus the way I figure, it can be fun to reach back and try to remember the basics. It helps to keep an edge. Don't be an asshole just because you already know this stuff. Have an open-mind towards students of the trade.

Cool idea but this is going to Newbie Programming.
Moved.
Forgot about that XD, Probably should have posted there in the first place.

Modified to Remove Double Post

10
Don't know what that is. O>O


EDIT:
Oh... wait. There's a link. And now I'm a total friggin noob.

EDIT #2:

Just start making things, make whatever is interesting to you. You can use http://www.codecademy.com/ to get the basics. Then start making things, make some simple web pages, simple games or whatever you wanna make. Also you can check this out too http://www.theodinproject.com/. You could find this out all by yourself and already lerning it...


WORKS BEAUTIFULLY!!!! Also shout out to Prime!! Thank you!


no more double posting.

11
Beginner's Corner / SQL Key Terms Fun Quiz!!!!
« on: January 26, 2015, 10:32:09 pm »
IF you comment all the answers correctly you will get a........COOKIE FROM YOURS TRULY!!!
1.) What is an FK? Define the acronym and then define the what it does!
 2.) What is a Null?
3.) What is a Datatype?
4.) What does the acronym PK mean?
*****BONUS QUESTION*****
1.) Give an Example of a Entity Relationship!!!! [Equals additional Cookies!]

12
General discussion / Re: Robots, anyone?
« on: January 26, 2015, 10:08:30 pm »
I made a Robotic Helicopter from some salvaged parts. It flew for about ten minutes then overheated and blew up. It was awesome.

13
I appreciate all the input and have looked into those search's. I meant an extensive class like tutorial. And after much digging, I was Unable to turn anything up. I was really looking for something interactive, but, again I appreciate all the input you guys gave and consider this a big thank you. Also, What kind of shots were fired?

14
Just what the Doc ordered THANK YOU

15
But where the fuck do I GO to start, googled this shit and no help what so ever. Need like a specific link or something. Also, I found a class thats free for SQL so I got that now but what about the other two?


Pages: [1] 2