SlideServe
Menu
Préférences
© SlideServe · v2026

Cupcake

tasha avatar
13 diapositives · 328 Views · Oct 14, 2014

Cupcake. Group: Jeansun Lee David Coulthart Jennifer Lee Russell Irving Klopfer, IV Alan Yeung. Outline. Introduction (jeansun) Structure of Cupcake (dave) Sample Program (jenly/GUI) Testing (russ) Tools Used (alan) Future Development (alan) What We Learned (jeansun). Introduction.

Cupcake - slide 1
01 / 13Cupcake
1 / 17

Télécharger la présentation

Cupcake
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Cupcake Group: Jeansun LeeDavid CoulthartJennifer LeeRussell Irving Klopfer, IVAlan Yeung

  2. Outline • Introduction (jeansun) • Structure of Cupcake (dave) • Sample Program (jenly/GUI) • Testing (russ) • Tools Used (alan) • Future Development (alan) • What We Learned (jeansun)

  3. Introduction • Purpose: create simple board games • Example: CandyLand • Kid-friendly language • Easy, fun way to learn computer programming • Target language: Java

  4. Structure of Cupcake • Four basic components: • Setup{…} • Start{…} • Turn{…} • Win{…}

  5. Structure of Cupcake • Reserved objects • Dice • Board • Players • CurrentPlayer

  6. Structure of Cupcake • Internal functions • Say • Ask • RollDice • MoveAhead • MoveBack • MoveTo

  7. Structure of Cupcake • Grammar similar to Java • Support if, while, • But simpler

  8. Setup { Board.Spaces = 100; Dice.Sides = 6; Dice.Number = 1; } Start { Ask "How many players?", Players.Number; for i = 1 to Players.Number { Ask "Please enter player " + i + "s name.", Players[i].Name; } } Turn { RollDice; MoveAhead Dice.Value; if (CurrentPlayer.Space == 89) { MoveTo 50; } } Win { if (CurrentPlayer.Position >= Board.End) { if (CurrentPlayer.Points >= 20) { Say "You won"; } else { MoveTo CurrentPlayer.PreviousPosition; } } } Sample Program

  9. Sample Program • Screenshots

  10. Tools Used • ANTLR

  11. Future Development • Simpler programming interface • Support for more kinds of board games • Improved GUI • Animation, sound effects, etc.

  12. What We Learned • Time management is hard • Collaboration is uber hard • Russell and Alan sleep a lot • Food is imperative during meetings • Most Difficult Concept: -blah

  13. Thanks • Chun Li, our helpful TA • Professor Aho • Terence Parr, aka Mr. ANTLR • The Russell Irving Klopfers, I, II, & III