ThemostencouragingmsgIreceivedsinceIstartedblogging
fromJackthegenius
GoldenThumb
Oct16·1minread
YesterdayIgotamessagefromAn.
[
阅读全文]
[阅读全文]和她一块玩,你将童心长在。AstickerloverwithtonsoffantasticideasshemakesmefeellikeI’mateenagerGoldenThumbOct16·6minreadElaineacceptedmyfriendrequestinWeChatonDec2,2018.4dayslatershegotherhandswetonlinedrawingbusiness.Thehomeworkwassomethinglike“drawanygrid”.Shepostedherfirstmasterpieceofartshownbelow.FromwhatIcouldtell,therewasnotasinglelinehorizontalnorvertical.E...[
阅读全文]
[阅读全文]
Mommy,canyoudomeafavour?
Ineedsomefirmspanks
GoldenThumb
Oct15·4minread
EthanhadcoveredalongjourneytryingtosolveproblemABCDE*4=EDCBA.Finallyonlythelastunknownremainedinfrontofus.Evenbetter,wehadnarroweddowntherangeofpossiblevaluesofCtojusttwodigits:8or9.
ABCDE*4=EDCBAA=2E=8B=1D=7C=8or921C78*4-----87...[
阅读全文]
[阅读全文]Isentoutamathproblem…Igot“crabs”back.GoldenThumbOct14·3minreadMariuspresentedaninterestingmathproblemABCDE*4=EDCBAafewdaysago.Lucasbroughtmeanewonetoday.HeisreallyamasterofASCIIart.IforwardedittoLambert.Hissolutioncameback,togetherwithapairofcrabs....[阅读全文][
阅读全文]
[阅读全文]
FiveStepstoCreateaChessApp5/5
Step5:movepiecesaround
DonaldSheng
Oct11·6minread
Toletdifferentpartsofoursoftwaretalkwitheachotherinprofessionalway,we’llcreatesomethingcalled“protocol”inSwiftprogramminglanguage,whichissimilarto“interface”inJavaprogramminglanguage.Rightclick&l...[
阅读全文]
[阅读全文]
FiveStepstoCreateaChessApp4/5
Step4:drawpieces
DonaldSheng
Oct11·6minread
Summaryofprevious3steps:
Step1:createdchessappfromscratch
Step2:addedaviewforourchessboard
Step3:drew8x8chessboard
Weneed12pieceimages,6whiteand6black,torepresent32piecesonboard.Trytosearchwhateverimagesyoulikeanddownloadtheminto,e.g.&...[
阅读全文]
[阅读全文]
FiveStepstoCreateaChessApp3/5
Step3:drawchessboard
Step1createdtheappandstep2putaviewonscreen.Nowlet’sdrawthe8x8chessboard.Weneedtocreateafiletoputourcodein.
Click“Chess”folderontheleftnavigationpanelanditturnsblue.Rightclicktoshowthemenu.
rightclickthebluerowwith“Chess”
Select“NewF...[
阅读全文]
[阅读全文]
FiveStepstoCreateaChessApp2/5
Step2:putaviewontoscreen
Instep1wecreatedtheemtpyChessappwithoutchanginganythingXcodeprovidedus.Inthisstepwe’lladdaviewontothewhite“screen”,whichisactuallyanotherview.
Click“Main.storyboard”ontheleftnavigationpanel.Thenfromtherightbottom,chengethetemplateto“Viewas:iP...[
阅读全文]
[阅读全文]
FiveStepstoCreateaChessApp1/5
Step1:createanemptyapp
WARNING:Thisisnotatutorial,becauseitdoesn’tbothertoanswerasingle“why?”.Itsimplyshowsoneway,notevenagoodone,ofdoingsomething.Andattheendifitactuallytriggerstonsof“why?”inyourmind,itdoesitsjobthen.ItmighthelpyoucheckifXcodeisafunlearningtoolforyourkidsthough.
Whenitis...[
阅读全文]
[阅读原文]
LetComputerConquerABCDE*4=EDCBA,StepbyStep
HalunderstoodtheproblemABCDE*4=EDCBAverywell.SohebroughtupTextEdit,probablywouldtrysomethingthere.
“Let’splaywithitinXcode,insideatestfile.Andwehavefix-widthfontbydefaultatleast.Maybewe’lltrysomeprogramsolutiontoo.”,Isuggested.
“Sure”,Halgotusedtounittestalready.
HecreatedafileMathTests...[
阅读全文]