Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 78 - Playgujarati_V1.0
P. 78

    uhps nh xbZ rkfydk oqQN egRoiw.kZ lsa¯lx (Sensing) CykWDl vkSj muosQ dk;ks± dks n'kkZrh gSA

                                                    lp gks tkrk gS tc LçkbV ekml ikWbaVj ;k eap
                         touching  mouse-pointer  ?  osQ fdukjs dks Nwrk gS (MªkWi&Mkmu rhj ij fDyd

                                                    djosQ ifjHkkf"kr fd;k tkrk gSA)

                                                    lp gks tkrk gS tc LçkbV ,d ifjHkkf"kr jax dks
                           touching color    ?
                                                    Nwrk gSA

                           color      is touching  ?  lp gks tkrk tc dyj 1 dyj 2 dks Nwrk gSA

                                                    dhcksMZ ij ,d ifjHkkf"kr dh nck, tkus ij lR;
                           key space  pressed?
                                                    gks tkrk gSA

                                                    mi;ksxdrkZ ls ,d ç'u iwNrk gS vkSj mÙkj dh
                       ask What is your name?  and wait
                                                    çrh{kk djrk gSA

                                                    mi;ksxdrkZ  n~okjk  fn,  x,  mÙkj  ;k  buiqV  dks
                                 answer
                                                    lax`ghr djrk gSA

                                                                                                   lsaflax CykWd (Sensing block)
                      vkb,] ge ,d ljy çksxzke fodflr djsa tgk¡ nk;k¡ dh nck, tkus

                      ij oSQV LçkbV ckLosQVckWy dh vksj c<+rk gSA oSQV LçkbV osQ fy,
                      dksM blh osQ leku gks ldrk gSA

                                          s
                          mi;ksxdrkZ d buiqV lax`ghr djuk  (Storing User Input)
                      mi;ksxdrkZ ls buiqV ysus osQ fy, çksxzke dks Hkh fodflr fd;k tk ldrk gSA
                      blls igys] geus 12 dks 5 ls foHkkftr djus osQ fy, ,d çksxzke fodflr

                      fd;k FkkA LØSp mi;ksxdrkZ ls Hkh buiqV ysus dk fodYi nsrk gSA
                      nks la[;kvksa dks foHkkftr djus vkSj Doks'ksUV •kstus osQ fy, ,d dk;ZØe

                      fodflr djus osQ fy,] LçkbV dh fLØIV dks bl çdkj ifjHkkf"kr djsa%

                      tc çksxzke pyk;k tkrk gS] rks LVst osQ uhps ,d NksVk VsDLV buiqV ckWDl
                      •qyrk gSA osfj,cy dk eku Vkbi djsa vkSj ,aVj (Enter) dh nck,¡ ;k VsDLV
                      ckWDl dh nk;ha vksj fLFkr fVd ekoZQ flacy ij fDyd djsaA

                         76  Play (Ver. 1.0)-V

| 73 74 75 76 77 78 79 80 81 82 83 |