1 / 13

Cupcake

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.

tasha
Download Presentation

Cupcake

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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

More Related