4757 comments
2071 subscribers
4481 on Twitter
Subscribe! Feed reader E-mail

Questions for the Snakes and Ladders defense

Your use of advanced concepts like Images and sounds shows that you
know how to learn independently and apply what you learned to your
game. Nice documentation, too.

Bonus, so they went to the J2sdk demos and the audio files and looked for au files.
Followed the book. (Lori) Learned from friends how to display images.

-

Trying to slow down the ball’s movement so that you can see the position.

How can you improve on your current game?

Making the ball move slower so that you can see how it goes. More
reading the book or asking help from teachers and friends.

Let’s take a look at parts of your code to see how you can improve it.
Please open GCanvas. Can you try using a loop to simplify the
constructor?

Clarissa applied a for loop to simplify her constructor code.

Can you try using variables to simplify the paint method?

Lori just added a for loop without real effect. Not so clear on
programming. She hasn’t developed a lot of debugging skills yet, and
seems to perform changes by rote. Clarissa can find errors quiclky

Okay, she fixed that error. Minor simplification, but there’s still
something else that can me improved.

Lori’s not too confident about programming yet, and she tends to
make small, random changes in order to try to get a program to work.
Clarissa is helpful.

Lori eventually got it. Yay!

It takes them a short while to brainstorm different ways to deal
with a problem. Clarissa usually takes the lead

Then I asked them to define a class for the Player.

They identified x and y right away, and then Clarissa identified
name after scrolling through the source code, and then Lori did so
as well.

They aren’t too familiar with arrays of objects yet.
They know how to use search-and-replace, though.

They look like they’re using arrays for the sake of using arrays,
and this makes their program suffer in terms of readability. There’s
a lot of duplication of code.

Next step:
Simplify code
Learn about threading

Short URL: http://sachachua.com/blog/p/1249

Comment, share a thought, ask a question...

Please comment as you, not your organization.





On This Day...

  • 2011: Passioneer survey (Submit your answers by Oct 18) — Many people struggle to name a single passion. Do you have several, or maybe too many to list? Kirsten (Good [...]
  • 2011: Weekly review: Weeks ending October 7 and October 14, 2011 — We’ve just come back from a short trip to the Philippines (Oct 5 – Oct 15) where we celebrated my [...]
  • 2010: Back on the writing wagon — From October 6: It’s been a whirlwind week. My family flew into Toronto to celebrate our wedding. I’ve [...]
  • 2008: Oooh, pretty presentation! — When I grow up, I’m going to make presentations like this. =) Sketchboards + Prototypes View SlideShare presentation or Upload your own. [...]
  • 2007: stretch — It would probably be a good idea for me to move my trapeze lessons to Fridays, or to keep practicing until [...]
  • 2006: On the other hand… — On the other hand, it’s great when something takes you a third of the time you thought it would! =) It took [...]
  • 2006: Timing — Wow. This timing thing is freaky. It’s *fun* to dash off a few quick estimates of how long something will take [...]
  • 2006: More cramming — I realized that I’d forgotten Alvin’s poster in the lab, so I trekked back there to pick it up. The walk [...]
  • 2006: Whew! Midterms done — I’m not too happy with my performance on the midterms, but there’s no use worrying about it now. I’m surviving this [...]
  • 2005: E-mail subscription! — Feedburner.com makes it easy to offer e-mail subscriptions to blogs. If you want to get my blog through e-mail, fill [...]
  • 2005: Oi! Amazon.ca has the same list prices as Chapters! — That means I don’t have to wait weeks in order to save a few bucks. I can just wander over to [...]
  • 2005: Improv comedy — The improv comedy show at Bad Dog Theatre was totally awesome. I was impressed by the Friday show last week. I [...]
  • 2004: Ranulf’s talk — This afternoon I will be speaking about iGame in scouting. Before, we had the same presentation for the workshop group, and [...]
  • 2004: Excuse me for replying directly — ľÀܤΥ᡼¥ë¤Ç¼ºÎ餷¤Þ¤¹¡£ ľÀÜ ¤Á¤ç¤¯¤»¤Ä /(adj-na,n-adv) direct/immediate/personal/firsthand/(P)/ ¼ºÎé ¤·¤Ä¤ì¤¤ /(adj-na,int,n,vs,exp) (1) discourtesy/impoliteness/(2) Excuse me/Goodbye/(P)/
  • 2004: That’s odd — Either offending computer is off the network at the moment, or the trick is just to wait until someone else has [...]
  • 2003: Bautista, Flores — B+ Java for implementation + eliminated the smaller classes, merged them + coordination of work + conflict checking - no updated documentation - big OOP classes, [...]
  • 2003: How much Microsoft Office functionality do you need? — http://www.eweek.com/article2/0,4149,1331533,00.asp
  • 2003: TopologiLinux — TopologiLinux is run on top of any DOS/Microsoft Windows system without partitioning your hard disk. Unlike other Linux distributions [...]
  • 2003: Wearables in Europe — http://www.eurowearable.org/