When your computer science teacher gives you an assignment that she swears will take at least two weeks, says is due in three weeks, and will even understand if it takes you longer than that and won't mark you down depending on how much effort you show, and then I finish it the same day?
I love how I read the title as "Is it wrong to get head" Yeah, I don't know, I need to go to sleep. You're such an overachiever, you lil fifteen year old. Lol, but seriously. I would never be able to do that. ;-;
I did that today, I already finished my super big history project. But I did not hand it in yet because I bet something is wrong with it.
That's how I felt about this project :lolface: The project is a Java program that plays rock, paper, scissors with you. When I finished I was sure there would be something wrong with it so i tested every possible combination of moves i could think of in every order I could think of, and everything worked fine. Tested it for like an hour before I actually submitted it. I also had to convince her that I didn't steal it off the internet, lol
I prefer Quartz, Parchment, Shears. Spoiler [video=youtube;A4xPYL3zO_0]http://www.youtube.com/watch?v=A4xPYL3zO_0&feature=related[/video]
Here's a thought. Maybe you're actually better than the standard and thus your big head is justified. I could be wrong.
No, my homework was this: Spoiler Code: import javax.swing.*; //needed for gui import java.util.Scanner; //needed for gui input and file reading import java.io.*; //needed for file reading public class RPS { Player p1 = new Player(); //makes a Player for the human player Player p2 = new Player("Computron"); //makes a Player for the computer Player p3 = new Player(" "); //blank Player used to hold which player won. String inString; //Used for holding in gui input boolean done; //Used for a while loop char p1c; //Stands for "player 1 choice" char p2c; //Guess what this stands for. public void getPlayerChoice() //This method takes in an input and sets it to the human Player's curplay { inString = JOptionPane.showInputDialog("Enter your play choice: r, p, or s"); //Input box char c = Character.toLowerCase(inString.charAt(0)); //converts String to char done = false; //This must be here to keep the setter going(learned that the hard way) while(done != true) { if((c == 'r') || (c == 'p') || (c == 's'))//this is to make sure the user inputted the data right. { p1.setCurPlay(c); //sets the player's CurPlay to his input p1c = p1.getCurPlay(); //updates p1c(This must be done every time, also learned that the hard way) done = true; //finishes the loop } else JOptionPane.showMessageDialog(null, "You're dumb, go read a book", "Error", JOptionPane.ERROR_MESSAGE); //should the user put in wrong data, he get's this hearbreaking insult } } public void setComputerChoice(char c1) //generic setter, will later be used with a file input { p2.setCurPlay(c1); p2c = p2.getCurPlay(); //updates p2c(this must be done every time) } public void playGame() //The actual logic for rock, paper, scissors { if(p1c == p2c) { p1.addTie(); p2.addTie(); //if p1c and p2c put in the same thing, it's a tie. Duh. //p3 = null; } if((p1c == 'r' && p2c == 's') || (p1c == 'p' && p2c == 'r') || (p1c == 's' && p2c == 'p')) //logic for player one winning { p1.addWin(); p2.addLoss(); p3 = p1; } if((p2c == 'r' && p1c == 's') || (p2c == 'p' && p1c == 'r') || (p2c == 's' && p1c == 'p')) //logic for the computer winning { p2.addWin(); p1.addLoss(); p3 = p2; } if(p1c == p2c) { p3 = null; } //This translates to "nobody won". This is used for some logic later } public void displayResults() //Displays the results { if(p3 != null) { if(p1.getWin() > p2.getWin()) { p3 = p1; } //This basically translates to "P1 is the current winner" if(p2.getWin() > p1.getWin()) { p3 = p2; } //This translates to "P2 is the current winner" JOptionPane.showMessageDialog(null, "Player entered " + p1c); //Shows player input JOptionPane.showMessageDialog(null, p2.getFirstName() + " entered " + p2c); //Shows computer input JOptionPane.showMessageDialog(null, p3.getFirstName() + " won!"); JOptionPane.showMessageDialog(null, p3.toString()); } else { JOptionPane.showMessageDialog(null, "Player entered " + p1c); //Shows player input JOptionPane.showMessageDialog(null, p2.getFirstName() + " entered " + p2c); //Shows computer input JOptionPane.showMessageDialog(null, "The game was a tie!"); } } public void finalWinner() //Shows the final winner after X amount of games { if(p1.getWin() > p2.getWin()) { p3 = p1; } if(p2.getWin() > p1.getWin()) { p3 = p2; } if(p3 != null) //If the game was not a tie, shows the winner and his stats { JOptionPane.showMessageDialog(null, "The game is over. " + p3.getFirstName() + " won with a total of " + p3.getWin() + " wins"); JOptionPane.showMessageDialog(null, p3.toString()); if(p3 == p1) { JOptionPane.showMessageDialog(null, p2.toString()); } if(p3 == p2) { JOptionPane.showMessageDialog(null, p1.toString()); } } else { JOptionPane.showMessageDialog(null, "The game is over and ended in a tie!"); //If it was a tie, it shows both players stats JOptionPane.showMessageDialog(null, p1.toString()); JOptionPane.showMessageDialog(null, p2.toString()); } } } And that's not even half of it.
I'm jealous, I have tried so many times to learn Javascript and it has completely eluded me. D: But lol, I have gotten very used to doing projects that are supposed to be done over the time span of several weeks in one night.
I think that's good. I've always been bad with homework especially math. Math is my worst subject and I usually wait until the last minute to do it haha.
Read the first post wrong and somehow thought you said your history teacher had assigned this. That would have been pretty cool.
Actually i've been doing Java, not JavaScript. They're different[/smartass] But seriously, I've tried to learn java from the Internet before and I could NOT do it. It's so much better taking an actual class.
Lolwut? I didn't think you could take a class to learn it, let alone that it even existed o.0 I normally spend the whole time span doing it, I have to plan out which parts I do each night otherwise I panic. If it's not organised I can't relax and do it.