






Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!







DOCUMENT RESUME
ED 432 990 IR^019
AUTHOR Kahn, Ken
TITLE A^ Computer^ Game^ To^ Teach^ Programming.
PUB DATE 1999-06-
NOTE 10p.; In: Spotlight on the Future, NECC '99. National
Educational Computing Conference Proceedings (20th, Atlantic
City, NJ, June 22-24, 1999); see IR 019 708. Figures may not
reproduce clearly.
PUB TYPE Reports Evaluative (142) Speeches/Meeting Papers (150)
EDRS PRICE MF01/PC01 Plus Postage.
DESCRIPTORS Authoring Aids (Programming); Children; *Computer Assisted
Instruction; *Computer Games; Computer Simulation; Computer
Software Development; Educational Games; Elementary
Education; Instructional Effectiveness; Microworlds; Problem
Solving; *Programming; *Puzzles
ABSTRACT
ToonTalk is an animated interactive world inside of which
one can construct a very large range of computer programs. These programs are
not constructed by typing text or arranging icons, but by taking actions in
this world. Robots can be trained, birds can be given messages to deliver,
and so on. This paper describes the design and preliminary testing of an
interactive puzzle game that functions as a ToonTalk tutorial. Children are
presented with a series of interactive puzzles in a game-like narrative
context. The puzzles gradually introduce programming constructs and
techniques. Each puzzle presents the player with a very limited selection of
ToonTalk objects. Even some very young children are able to solve the puzzles
because the search space is so strongly constrained, and yet players do not
behave as if the puzzles are too easy--the children are clearly challenged.
The sequence of puzzles is carefully designed to gradually introduce new
concepts, one at a time. Testing has shown that both children and adults
enjoy the puzzles and have learned some sophisticated programming skills.
(Contains 11 figures and 7 references.) (Author/AEF)
Reproductions supplied by EDRS are the best that can be made
from the original document.
PERMISSIONTOREPRODUCEAND
DISSEMINATETHISMATERIAL
HASBEENGRANTEDBY
M.Howes
TOTHEEDUCATIONALRESOURCES
INFORMATIONCENTER(ERIC)
IlesearchPaper:CurrentandEmerginglecimologies
TeachProgramming
KenKahn
AnimatedPrograms
49FayAvenue
SanCarlos,CA
U.S.DEPARTMENTOFEDUCATION 0ZiceofEducationalResearchandImprovement
EE (^) CATIONALRESOURCESINFORMATION
CENTER(ERIC)
Thisdocumenthasbeenreproducedas
receivedfromthepersonororganization
originatingit.
Minorchangeshavebeenmadeto
improvereproductionquality.
oPointsofvieworopinionsstatedinthis
documentdonotnecessarilyrepresent
officialOERIpositionorpolicy.
learningcomputerprogramming, interactivetutorials,
animatedprogramming
Abstract
ToonTalk'isananimatedinteractive worldinsideofwhich onecanconstructavery
largerangeofcomputer programs.Theseprogramsarenotconstructedby typing
textorarrangingicons,butbytaking actionsinthisworld.Robots canbetrained,
birdscanbegivenmessagestodeliver, andsoon.ToonTalkhasbeen describedat
NECC'95(Kahn,1995) aswellas(Kahn,1996a&1996b).
Thispaperdescribesthedesignand preliminarytestingofaninteractive puzzlegame
thatfunctionsasaToonTalktutorial. Childrenarepresentedwithaseriesof
interactivepuzzlesinagame-likenarrative context.Thepuzzlesgraduallyintroduce
programmingconstructsandtechniques. Eachpuzzlepresentstheplayerwith avery
limitedselectionofToonTalkobjects. Evensomeveryyoungchildren areableto
solvethepuzzlesbecausethesearch spaceissostronglyconstrained.Andyet
playersdonotbehave
areclearly
challenged.Thesequenceofpuzzlesis carefullydesignedtograduallyintroduce new
concepts,oneatatime.Testinghasshown thatbothchildrenandadultsenjoythe
puzzlesandhavelearned somesophisticatedprogrammingskills.
'Spotlightonthefuture'
BESTCOPYAVAILABLE
Computerscientistsstrivetofindgoodabstractionsforcomputation.InToonTalk a
criticalgoalistofindgood"concretizations"ofthoseabstractions.Thechallenges
aretwofold:toprovidehigh-levelpowerfulconstructsforexpressingallprograms
andtoprovideconcrete,intuitive,easy-to-learn,systematic gameanalogstoevery
constructprovided.
TheToonTalkworldresemblesatwentieth-centurycity.There arehelicopters,trucks,
houses,streets,bikepumps,toolboxes,hand-heldvacuums,birds,boxes,androbots.
AnentireToonTalkcomputationhappensinacity.MostoftheactioninToonTalk
takesplaceinhouses.Homingpigeon-likebirdsprovidecommunicationbetween
houses.Birdsacceptthings,flytotheirnest,leavethemthere,andflyback.
Typicallyhousescontainrobotsthathavebeentrainedtoaccomplishsomesmall
task.Arobotistrainedbyenteringintohis"thoughtbubble"andshowinghimwhat
todo.Therobotrememberstheactionsinamannerthatcaneasilybeabstractedto
applyinothercontexts.
Thebehaviorofarobotisexactlywhathewastrainedtodobythe programmer.This
trainingcorrespondsintraditionaltermstodefiningthebodyofamethodorclause.
sendingamessagebygivingaboxorpadtoabird,
spawninganewprocessbydroppingaboxandateamofrobotsintoa
truck(whichdrivesofftobuildanewhouse),
performingsimpleprimitiveoperationssuchasadditionor
multiplicationbybuildingastackofnumbers(whicharecombinedby
asmallmousewithabighammer),
copyinganitembyusingamagician'swand,
terminatinganagentbysettingoffabomb,
changingatuplebytakingitemsoutofcompartmentsofaboxand
droppinginnewones.
Figure7.PossibleactionsofToonTalkrobots
Whentheusercontrolstherobottoperformtheseactions,sheisactingupon
concretevalues.Thishasmuchincommonwithkeyboardmacroprogrammingand
programmingbyexample(Smith,1975).Thehardproblemforprogrammingby
examplesystemsishowtoabstracttheexampletointroducevariablesforgenerality.
TooriTalkdoesnoinductionorlearning.Instead,theuserexplicitlyabstractsa
programfragmentbyremovingdetailfromthethoughtbubble.Thepreconditions
arethusrelaxed.Theactionsinthebodyaregeneralsincetheyhavebeenrecorded
withrespecttowhichcompartmentoftheboxwasactedupon,notwhatitems
happenedtooccupythebox.
TheToonTalkPuzzleGame
Acarefullydesignedsequenceofpuzzlescanbepedagogicallyveryeffective.Aseries
ofpuzzlesismoreappealingtomostchildrenwhenitisembeddedwithinanarrative
adventure.TheToonTalkpuzzlegamestartswithabrief"backstory."Anislandis
'Spotlightonthefuture
4
sinkingandafriendlyMartian namedMartyhappenstobe flyingbyandrescues
everyone.Heisnearlydonewhenhecrashes andishurt.Theplayer hasvolunteered
torescueMarty.Marty,because heishurt(youcan seehisarminaslingandhis
bruises),can'tgetoutandbuild thethingsneededtofixhisship.Soheasksthe
playertomakethingsforhim. Theplayergoesnearbywhere thecomponentsheor
sheneedscanbefoundand hastofigureouthowto combinethem.Whenstuck or confusedtheplayer cancomebacktoMartywhoprovides hintsoradviceabouthow
toproceed.Ifaplayerisreally stuckonaparticularproblem thenMartygivesthe
playerdetailedinstructions soheorshecanproceedtothe nextpuzzle.Notethat
gettingadviceorhintsfromMartyfitsthenarrative
structuresinceMartyknows
whattodobutistoobadly injuredtodoithimself.
InordertofixMarty'sship,the firstjobistofixtheship's computer.Thecomputer
needsnumbersandletters towork.Thegoalofthefirst levelistogeneratethe
numbersneeded.Theculminationof thelevelistheconstruction ofaprogramthat
computespowersoftwo(1,2,4,
power).Thenext
levelinvolvestheconstruction ofaprogramthat computesthealphabet.Thenext
taskistofixtheship'sclock. Solvingthesepuzzlesinvolves measuringtime,
mathematics,andsome newprogrammingtechniques.At onepoint,theplayerhas
constructedanumberthatshows howoldheorsheisinseconds. Andthenumber
changeseverysecond!
ADetailedLookatSome ProgrammingPuzzles
Itisinstructivetolookat somepuzzlesindetail.Thefirstreal programaplayer
buildsisintheninthpuzzle. Martyneedsanumberbigger than1,000,000,000for
thecomputer.Whenthe playergoesintothe roomallshefindsisaboxwiththe
number1init,and arobotwithamagicwandcapableof copyingthings.Theplayer
torepeatedlydouble anumber.Severaloftheearlierpuzzles
preparetheplayerforthistask.Thefirst threepuzzlesintroducenumbers, addition, andboxes(datastructures). Inthefourthpuzzle,Marty needsanumbergreaterthan
1,000(seeFigure8).Whenthe playergoesnextdoor, onthefloorisjustthenumber
1andthemagicwand(see Figure9).Thereareonly twochoices:dosomethingwith
thenumberordosomething withthewand.Itturns
nothingthatcanbedonewith thenumber.Martyhasalready informedtheplayer
spacebarwillturnonthewand.Even childrenasyoungassix
yearsfigureouthowtopick upthewand,moveitstip
spacebar,andthendropthe copy.Iftheydropthecopy onthenumberonthefloor
thenthetwoiswillbeadded(inanentertaining
way,byalittlemousewithabig
hammer).Thetricktothispuzzle istorepeatedly copythenumberandadditto
itself,therebydoublingiteach time(seeFigure10).Inaddition, themagicwandhas
After10copies,ithas runoutofmagicand
won'tworkanymore.This helpsconstrainthesearchfor asolution.(Thisisnotan
easypuzzleformost9or yearsolds.Many,forexample,initially makethe
mistakeofmaking manycopiesandthenaddingthem.)The solutionrequiresthe
sameaction10times.Avoidingsuch tediumisamotivationfor
programmingrobotstodothework foryou.
RationalEducationalComputingCoofereoce 1000,NordicCit11,11,
5
enoughtoremembertwosteps.
Whentheplayertrainstherobotto copytheboxandthenjointhecopywiththe
originalbox,therobot'smemoryisfull sohisthoughtbubbleshrinksbackdownand
theplayerisbackonthefloorwiththerobotand thebox.Therobot nowknows
whattodowhengivenabox, soitrepeatswhatitwastrainedtodoandcopiesthe
box.
Theseearlypuzzlesaredesignedtosimplify someprogrammingtasks.Forexample,
theplayerdoesn'tneedtoknowhowto terminatethetrainingofarobot.Whenthe
limitonthenumberofstepstherobot remembersisexceeded,histrainingis
automaticallyterminated.Similarly,the counteronthemagicwandensuresthatthe
robotwillstopafterthecorrectnumberof iterations.Inlaterpuzzles,thesetasks
becometheplayer'sresponsibility.
7-77.71. 4e
'c44-44c, (^) ".-vcc,;Ccoc=c:
"a-
C-:=PT):
aCg.
der (^) -
Bythetimetheplayerstartstheninthpuzzle, heorshehasperformedthe
prerequisiteactionsandmustcombinethemproperly
doubleanumber.Theplayerispresentedwith arobotholdingawandgoodfor
copiesandaboxwitha1init.Againthe robotislimitedtorememberingonlytwo
stepprograms.Becausethereisonlytherobotand theboxtoworkwith,and
becauseofthelimitationsimposedontherobot,thisotherwiseoverlyambitious
earlyprogrammingexample canbesolvedbymostplayerswithfewornohints.And
yet,theconstraintsdonotmakethepuzzle
problemsolvingarenecessarytosolvethepuzzle.
ThePedagogicalImportanceofthe PuzzleGame
Therearemanywaysinwhichchildrencanlearntoprogram(Kahn,1998).Typically,
themosteffectiveisby manyone-on-onesessionswithaveryknowledgeableand
skilledteacher.Unfortunately,suchteachers areinshortsupply.Ontheotherhand,
somechildrenlearnwellbyaself-directedexplorationofToonTalk infree-form
mode.However,theyseemtobetheminority.Mostchildrenaskwhattheyshould
donextratherthanexplore ontheirown.Forthemthepuzzlegameisideal.They
finditfunandchallengingbutdon'tfeellost. Agoodseriesofpuzzlesactuallyleads
aplayerstepbystepwherethepuzzledesigner wantstogo.Theplayersdon'tfeelas
iftheyarebeingledanywherebuthavethe illusionthattheyareincontrol.The
IlatiofialEducationalComputingConforeoce1999,EltlanticCitg,DJ
BESTCOPYAVAILABLE (^7)
Testing
puzzlessoconstrainthesetofobjectsthatcanbeusedandhowtheycanbeused
thattheplayerhasonlyafewchoices.
Evenamongthosechildrenforwhomthepuzzlegameiswellsuited,thereis
variationfromthosethatwanttofigureouteverythingthemselvestothosewho
veryquicklywanthints.TheToonTalkpuzzlegamedealswiththisbykeepingMarty
inanotherplace.Ifyoucometohimemptyhandedorwiththewrongthing,hewill
giveyouahint.Eachtimeyoureturnduringthesamepuzzleyougetamore
revealinghintuntileventuallyyougetdetailedinstructionsfromMarty.This
behavioraccommodatesawiderangeoflearningstyles.
Inadditiontofreeformexplorationandthepuzzlegame,ToonTalkalsoincludes
demos.Herethechildcanobserveaplayback,withsynchronizednarration,ofthe
demonstrationofsomeprogrammingconstructortechnique.Thispassiveviewing
hasitsplaceformanychildrenbutthelearningistypicallysuperficialunless
followedbypuzzlesolvingorfreeformconstruction.
Anautomatedintelligenttutor(Selker,1994)isanotherapproachtoteaching
programming.Astheuserperformsactions,thetutormaintainsausermodeland
attemptstotutortheuser.InToonTalk'sfree-formmode,Martycanplaytheroleof
atutor.Hemaintainsadatabaseofwhichactionstheuserhasperformedand
suggestsnewones.Thesuggestionsarebaseduponwhattheuseriscurrentlydoing
andwhatheorshehasalreadydone.Thiskindoftutoringhasworkedwellwitha
minorityofthetesters.Itisagoodcomplementtotheotherlearningmodes.A
muchmoresophisticatedautomatedtutorwouldpresumablybemuchmoreeffective
butmuchmoredifficulttoimplement.
ThepuzzlegameofToonTalkhasbeentestedwithtwoclassesof24childrenina
fourthgradeclassinMenloPark,California.Eachpairofchildrenwasobservedusing
ToonTalkforthree,40-minutesessions.Noformaltestingwasperformedbutnearly
allthepairsofchildrensolvedthefirst25puzzleswithoutassistance.Thechildren
hadnopriorexposuretoToonTalkandonlytwohadanypriorexposuretocomputer
programming.
TheToonTalkpuzzlesequencehasa"self-testing"character.PuzzleNumber15,for
example,isadifficultprogrammingtaskfornovicesgeneratingadatastructure
containing1,2,4,8,andsoonupto1,073,741,824.Theprerequisiteknowledgefor
constructingsuchaprogramwasacquiredinsolvingPuzzle9(constructinga
programtocompute2tothe30thpower)andPuzzle13(constructingadata
structurefilledwithzeros).Thesepuzzles,inturn,relyuponhavinglearnedin
earlierpuzzleshowtodoubleanumberandhowtotrainrobots(construct
programs).Thefactthatthechildrensucceededinsolvingthepuzzlesindicatesthat
thepuzzleshavesucceededandthechildrenarelearningcomputerprogramming.
ThereisalsoabetaversionavailableontheInternet(seehttp://www.toontalk.com)
andtestersaroundtheworldhaveworkedwiththepuzzles.Theresultinganecdotal
evidenceisthatawiderangeofpeoplecanworkthroughthepuzzlesequences.For
example,a6-year-oldboyinColoradosolvedthefirst25puzzles.Hewasnotableto
'Spotlightonthefuture
8
FutureWork
References
Thetestingto-datehasnotbeenformalandprecise.Wehopetofindandcollaborate
withanothergroupinterestedinstudyingtheeffectivenessofthesepuzzle
sequences,inamoreformalmanner.
Otherpuzzlesequencescanbeimaginedthatwouldteachdifferentcomputer
programmingtopics,likeconcurrency,algorithms,user-interfacedesign,and
distributedsystems.Puzzlesequencescanbedesignedforspecializeddomainslike
computermusic,gameprogramming,ordatabaseprogramming.Thedream
underlyingthisresearchisthatlearninghardtopics,likecomputerprogramming,
canbemademoreeffectiveandfunbyborrowingideasfromvideoandcomputer
games.
Kahn,K.(1995).ToonTalleiAnanimatedprogrammingenvironmentfor
children.ProceedingsoftheNationalEducationalComputingConference,Baltimore,
Maryland.AnextendedversionappearsintheJournalofVisualLanguagesand
Computing,June1996.
Kahn,K.(1996a,August).Drawingsonnapkins,videogameanimation,and
otherwaysofprogrammingcomputers.CommunicationsoftheACM.
Kahn,K.(1996b).Seeingsystoliccomputationsinavideogameworld.
ProceedingsoftheIEEEConferenceonVisualLanguages,Boulder,Colorado.
Kahn,K.(1998).Helpingchildrentolearnhardthings:Computerprogramming
withfamiliarobjectsandactions.InA.Druin&M.Kaufmann(eds.),TheDesignof
Children'sTechnology.
Kim,S.(1995).Puzzlegamesandhowtodesignthem.ProceedingsoftheNinth
AnnualComputerGameDevelopers'Conference,SantaClara.
Selker,T.(1994,July).COACH:Ateachingagentthatlearns.Communicationsof
theACM37(7).
Smith,D.(1975,June).Pygmalion:Acreativeprogrammingenvironment(Tech.
Rep.No.STAN-CS-75-499).StanfordUniversity,ComputerScience.
'Spotlightonthefuture'
10
U.S.DepartmentofEducation
OfficeofEducationalResearchandImprovement(OERI)
NationalLibraryofEducation(NLE)
EducationalResourcesInformationCenter(ERIC)
Thisdocumentiscoveredbyasigned"ReproductionRelease
(Blanket)form(onfilewithintheERICsystem),encompassingall
orclassesofdocumentsfromitssourceorganizationand,therefore,
doesnotrequirea"SpecificDocument"Releaseform.
ThisdocumentisFederally-funded,orcarriesitsownpermissionto
reproduce,orisotherwiseinthepublicdomainand,therefore,may
bereproducedbyERICwithoutasignedReproductionReleaseform
(either"SpecificDocument"or"Blanket").
EFF-089(9/97)