资源描述:
《pragmatic programmers, best of ruby quiz volume1 (2006) bbl lotb外语英文电子书》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、BestofRubyQuizVolumeOneJamesEdwardGrayIIThePragmaticBookshelfRaleigh,NorthCarolinaDallas,TexasPragmaticBookshelfManyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andThePragmaticProgrammer
2、s,LLCwasawareofatrademarkclaim,thedesignationshavebeenprintedininitialcapitallettersorinallcapitals.ThePragmaticStarterKit,ThePragmaticProgrammer,PragmaticProgramming,PragmaticBookshelfandthelinkinggdevicearetrademarksofThePragmaticProgrammers,LLC.Everyprecautionwastakeninth
3、epreparationofthisbook.However,thepublisherassumesnoresponsibilityforerrorsoromissions,orfordamagesthatmayresultfromtheuseofinformation(includingprogramlistings)containedherein.OurPragmaticcourses,workshops,andotherproductscanhelpyouandyourteamcreatebettersoftwareandhavemore
4、fun.Formoreinformation,aswellasthelatestPragmatictitles,pleasevisitusathttp://www.pragmaticprogrammer.comCopyright©2006ThePragmaticProgrammersLLC.Allrightsreserved.Nopartofthispublicationmaybereproduced,storedinaretrievalsystem,ortransmit-ted,inanyform,orbyanymeans,electroni
5、c,mechanical,photocopying,recording,orotherwise,withoutthepriorconsentofthepublisher.PrintedintheUnitedStatesofAmerica.ISBN0-9766940-7-7Printedonacid-freepaperwith85%recycled,30%post-consumercontent.Firstprinting,February2006Version:2006-3-14Contents1Introduction1ITheQuizzes
6、51.MadLibs............................62.LCDNumbers.........................83.GEDCOMParser.......................94.AnimalQuiz..........................115.ScrabbleStems........................136.Regexp.build().........................147.HighLine..........................
7、..168.RomanNumerals.......................189.RockPaperScissors.....................2010.Knight’sTravails.......................2511.Sokoban............................2712.Crosswords..........................2913.1-800-THE-QUIZ.......................3114.TexasHold’em.......
8、.................3315.SolitaireCipher........................3616.EnglishNu