Preview

the skating part

Powerful Essays
Open Document
Open Document
380 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
the skating part
Problem Analysis and Design
Input/Output

Input(s) Output(s)

Mouse:

Clicking the squares button to put X or O
Clicking the button reset to restart the game
Clicking the button for high scores (if added)

Keyboard:

Entering name for high scores (if added)

Monitor:

Buttons for squares and symbol
Button for restart
Present score
Visual tic tac toe
Button for how to play

Game Layout
Main Screen
*500 X 500 Applet

Player 1 Player 2

High Score Screen (if added)
*500 X 500 Applet

High Scores Name Win/lose Selena 3/2 _ _ _ _

Other Screen
When the ? button is pressed, a message that indicates how to play the game will appear.

The players put a X/O on one of the 9 squares on each turn to try and form a line of 3 X/O. The player that first complete 3 squares in a row, column or diagonal using X/O wins.

Structure and Components
Buttons for Tic Tac Toe
Declare each button from 1-9” Example: Private JButton button1 = new JButton(“”); Private JButton button2 = new JButton(“”); Private JButton button3 = new JButton(“”); Private JButton button4 = new JButton(“”); Private JButton button5 = new JButton(“”); Private JButton button6 = new JButton(“”); Private JButton button7 = new JButton(“”); Private JButton button8 = new JButton (“”); Private JButton button9 = new JButton (“”);

Action Performed for Buttons
(Calculate

You May Also Find These Documents Helpful

  • Satisfactory Essays

    The theme of "The Skating Party" is you cannot choose who you love. Uncle Nathan proves this theme when he says, "'You cannot love where you choose'" (Summers, 104). Uncle Nathan is going to marry Eunice, but he chooses to be 'in love' with her. With Deliah, he cannot control the fact that he loves her, and that his heart is loyal to her. When Uncle Nathan faces the choice to save either Deliah or Eunice, despite the fact that he is Eunice's fiance, he decides to save Deliah. Uncle Nathan does not believe that you can't choose who you love when he says "'If you can fall in love in twenty minutes, then you can fall out of love just as fast'" (Summers, 109). Uncle Nathan is becomes affected by his feelings for Deliah, and the decisions he makes…

    • 146 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Title: The Greatest Skating Race Author: Louise Borden Publishing Group: Margaret K. McElderry Books Copyright: 2004 Genre: Informational book about social studies Age: 9-12 Summary: In 1941 Piet, gets the assignment of a lifetime: He must skate along the frozen canals of the Netherlands and across the Belgian border, in order to get the neighborhood children to their aunt's house.…

    • 526 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Answer the level question that is on the space. If you answer correctly you stay on that space. If you answer wrong then you move back 1 space for easy, 2 for medium, and 3 for hard.…

    • 119 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    (key verbs) and circle what you are being asked to look for in order to respond to the prompt…

    • 162 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    * For the PC games there is a Find a Game search for the game you would like to play.…

    • 988 Words
    • 4 Pages
    Good Essays
  • Better Essays

    30 for 30 broke

    • 906 Words
    • 4 Pages

    Enter whether the sentence or statement is true (enter “A” on your clicker) or false ( “B”).…

    • 906 Words
    • 4 Pages
    Better Essays
  • Good Essays

    In the two texts, “Snow” by Julia Alvarez, and “The Skater” by Annie Dilliard, the two characters in the stories had very different views about snow. As one was very scared and thought snow was a horrible thing, the other one thought that snow was a very beautiful thing in the world. These two texts have one thing in common, each character sees the snow in different ways, but by the end of the story, their views change. The characters thoughts change by the end of the story, thus meaning that each character is dynamic.…

    • 314 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    The Ice Skating Party

    • 298 Words
    • 2 Pages

    There is a clear example of missing information in this story: Uncle Nathan sketches the stone man for Maida, and his sister teasingly suggests that he has “forgotten” something when drawing the “very complete” stone man. What is Summers hinting at here, and how does the drawing Uncle Nathan has made represent Uncle Nathan himself? (How is he like the “incomplete” stone man he has drawn?)…

    • 298 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Both boys stared into each other’s eyes with fear. They quickly got up to open the bathroom door. Once they were inside they noticed that Lisa was frozen. “I killed her!” Danny stated. “No you didn’t she’s just in cryonic sleep!” Walter said. At this moment both Danny and Walter were afraid they needed to unfreeze their sister. Walter asked Danny if he read the rules before playing “I didn’t read them” he stated. Walter got an uneasy feeling and decided it was time for them to read the rules of the game. “Pieces reset at the end of each game” “that means we get to go home if we play” Walter stated. Danny started to get anxious and didn’t want to continue playing the game. “All I know is when we play that game, bad things happen” Danny stated. “Don’t be a baby” Walter said as he cranked the key and started to play the next round. “Eight. Look, I’m halfway there,” he said with satisfaction. The card popped out and looked at it “…

    • 814 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Nathan was also telling the story of stone man hill to his niece, stone man hill was the symbol of his confusion between Eunice and Delia.…

    • 905 Words
    • 4 Pages
    Good Essays
  • Good Essays

    I was right there; This is the moment. One last time around and then I, Pari Singh, am about to win the Canadian Figure Skating Competition. If I just land this jump perfectly, then I will be in the lead. I did it, but I could feel my leg swoop out. Wait, I thought to myself, this isn’t right. My skate didn’t touch the ice yet. I felt as if I were falling a long, long way down . . . then plunk.…

    • 454 Words
    • 2 Pages
    Good Essays
  • Good Essays

    “There's something magic about figure skating. Something that keeps me from giving up, and that makes me feel incomplete without it. Something that makes me addicted.”…

    • 592 Words
    • 3 Pages
    Good Essays
  • Good Essays

    I strongly believe that giving back to my community/school in one way or another is the most important thing outside of my academics and this is why I want to become an RA. At the age of thirteen, I started my own roller skating classes. Being the instructor of a roller skating class and running the class on my own taught me to be a leader, to grow from my failures and it gave me the opportunity to give back to my community. I learned how to skate in Washington, where my instructors were passionate and enthusiastic for the sport. Their positive energy was so powerful that my love for roller skating continued to radiate within me, even after I made the move from Washington to California. The impact that my instructors made on me and their ability…

    • 885 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Imagine that you've just turned 16 and your parents bought you a brand new Mustang. You're cruising on the street at approximately 25 miles per hour. So maybe you're not breaking the speed limit, but everyone's staring. You feel the light breeze through your hair. Then you're in the air, 12 feet high. Finally, you land on your back and come this (gesture 6 in.) close to cracking your skull. What happened? You were skating.…

    • 2017 Words
    • 9 Pages
    Good Essays
  • Good Essays

    Essay On Skateboarding

    • 595 Words
    • 3 Pages

    Did you know that skateboarding came from surfing? That is why people call it “sidewalk surfing”.The very first skateboards were actually kinda like scooters, with roller skate wheels attached to a two by four. Once the scooter like piece was broken off, the skateboard was born.Skateboards started with the old clay wheels and now with some improvement, “In 1972, Frank Nasworthy invented urethane skateboard wheels, which are similar to what most skaters use today” (Cave).…

    • 595 Words
    • 3 Pages
    Good Essays

Related Topics