{"id":22826,"date":"2022-10-30T16:55:46","date_gmt":"2022-10-30T15:55:46","guid":{"rendered":"https:\/\/rayshell.de\/?page_id=22826"},"modified":"2023-10-25T03:14:42","modified_gmt":"2023-10-25T01:14:42","slug":"lezione-3","status":"publish","type":"page","link":"https:\/\/rayshell.de\/it\/lezione-3\/","title":{"rendered":"Lezione 3"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"22826\" class=\"elementor elementor-22826 elementor-22739\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-671b5c6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"671b5c6\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-bd2da76\" data-id=\"bd2da76\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-a698e39\" data-id=\"a698e39\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-37ef488 elementor-widget elementor-widget-heading\" data-id=\"37ef488\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Lezione 3<br><br><\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d4948a1 elementor-widget elementor-widget-text-editor\" data-id=\"d4948a1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Benvenuti alla vostra lezione 3 di AOZ Studio\u2122 \u2013 scritta da Neil John Ives.<\/strong><\/p><p><strong>Questa lezione sar\u00e0 estesa pi\u00f9 tardi con la lezione 6.<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-dcd43b4 elementor-widget elementor-widget-text-editor\" data-id=\"dcd43b4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Nell\u2019editor, clicca sul simbolo della carta in alto a sinistra per creare un nuovo progetto. Selezionare Others nel menu di sinistra e scegliere Progetto personalizzabile., cancellate la voce \u201cLa mia applicazione\u201d e date al nuovo progetto il nome Lezione 3.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-392b850 elementor-widget elementor-widget-image\" data-id=\"392b850\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/rayshell.de\/wp-content\/uploads\/2023\/05\/new_custom_project.png\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"new_custom_project\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6Mjc2OTMsInVybCI6Imh0dHBzOlwvXC9yYXlzaGVsbC5kZVwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyM1wvMDVcL25ld19jdXN0b21fcHJvamVjdC5wbmcifQ%3D%3D\">\n\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"640\" height=\"415\" src=\"https:\/\/rayshell.de\/wp-content\/uploads\/2023\/05\/new_custom_project.png\" class=\"attachment-large size-large wp-image-27693\" alt=\"\" srcset=\"https:\/\/rayshell.de\/wp-content\/uploads\/2023\/05\/new_custom_project.png 897w, https:\/\/rayshell.de\/wp-content\/uploads\/2023\/05\/new_custom_project-300x195.png 300w, https:\/\/rayshell.de\/wp-content\/uploads\/2023\/05\/new_custom_project-768x498.png 768w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bf01258 elementor-widget elementor-widget-code-highlight\" data-id=\"bf01258\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>#splashScreen:false<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-01c4f2f elementor-widget elementor-widget-text-editor\" data-id=\"01c4f2f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Questo comando serve a nascondere il logo AOZ quando si avvia il programma. Cambia \u201cfalse\u201d in \u201ctrue\u201d se vuoi mostrare il logo.<\/p><p>Non funziona nella versione gratuita di AOZ Studio.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7cc7a80 elementor-widget elementor-widget-text-editor\" data-id=\"7cc7a80\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Questa lezione spiegher\u00e0 nuove funzioni e concetti:<\/p><p>Print, Locate, Paper, Pen, Centre,<br \/>Global, Input, Do Loop,<br \/>Procedure, Variabili intere e stringhe,<br \/>If Then, If End if,<br \/>Upper$, Cls, Ink, Bar,<br \/>Wait n, Wait Key,<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1191d72 elementor-widget elementor-widget-text-editor\" data-id=\"1191d72\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Conosceremo tutto costruendo un gioco.<br \/>Lo scopo del gioco \u00e8 quello di attraversare un fiume in una barca molto piccola con un pollo, una volpe e del mais senza che nessuno venga mangiato!<\/p><p>Nota: nelle prossime lezioni vedremo come migliorare questo gioco di puzzle. Includeremo testi grafici, immagini ed esempi sonori.<\/p><p>Allora cominciamo!<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-98a1958 elementor-widget elementor-widget-text-editor\" data-id=\"98a1958\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong><em>Print, Locate e Pen &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/em><\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-185edce elementor-widget elementor-widget-text-editor\" data-id=\"185edce\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Conoscete gi\u00e0 questi comandi se avete fatto la Lezione 1.<br \/>Locate \u00e8 usato per posizionare il comando \u201cPrint\u201d.<br \/>E.G.: Locate 1,12 Questo significa 1 blocco di testo a destra e 12 linee in basso, visto dall\u2019angolo in alto a sinistra dello schermo. Pen imposta il colore del testo.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3f625ba elementor-widget elementor-widget-text-editor\" data-id=\"3f625ba\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Carta imposta il colore di sfondo per il testo<br \/>Ad esempio, individuare 1,12: Carta 11: Penna 1: Stampa &#8220;Ciao&#8221;.<br \/>Mostrerebbe un testo bianco Hello su uno sfondo verde nella posizione selezionata 1, 12<\/p><p>Il centro indica al programma di stampare al centro dello schermo nella posizione impostata.<br \/>Ad esempio, posizione 0,10: centro &#8220;Hello World&#8221;.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-349ac78 elementor-widget elementor-widget-text-editor\" data-id=\"349ac78\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong><em>Variabili, (interi und stringhe)\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2013<\/em><\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a4e9b2c elementor-widget elementor-widget-text-editor\" data-id=\"a4e9b2c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Conoscete gi\u00e0 un po\u2019 questi comandi se avete fatto la Lezione 1.<br \/>Le variabili sono utilizzate per memorizzare un valore che pu\u00f2 variare, da cui il nome variabile. In questo programma alcune variabili sono utilizzate per memorizzare numeri che dicono al programma dove posizionare il testo sullo schermo.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-36e6c34 elementor-widget elementor-widget-text-editor\" data-id=\"36e6c34\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Queste variabili immagazzinano numeri interi conosciuti come interi, quindi sono anche chiamate variabili intere.<br \/>Le seguenti variabili intere sono utilizzate in questo programma:<br \/>mx, salva la posizione orizzontale per il testo \u201cUomo(U)\u201d.<br \/>fx, fa lo stesso per \u201cVolpe(V)\u201d.<br \/>hx, fa lo stesso per \u201cPollo (P)\u201d.<br \/>sx, fa lo stesso per \u201cSacco di mais (S)\u201d.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-944c431 elementor-widget elementor-widget-text-editor\" data-id=\"944c431\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>C\u2019\u00e8 una differenza tra una variabile che memorizza un testo e una che memorizza un numero.<br \/>Se una variabile deve memorizzare un testo, un simbolo di dollaro deve essere aggiunto alla fine del suo nome.<br \/>ad esempio, MioNome$ = \u201cFrancois\u201d.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e535b62 elementor-widget elementor-widget-text-editor\" data-id=\"e535b62\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Nota: i numeri possono essere usati come testo o numeri reali, per esempio, un numero civico \u00e8 di solito un testo. Non farai nessuna operazione matematica con un numero civico, come moltiplicare o aggiungere un numero civico.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d6a8f77 elementor-widget elementor-widget-text-editor\" data-id=\"d6a8f77\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Per essere pi\u00f9 precisi, le lettere e le parole nei programmi per computer sono chiamate \u201cstringhe\u201d.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e0ca70f elementor-widget elementor-widget-text-editor\" data-id=\"e0ca70f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In questo programma, SceltaGiusta$ e SceltaSinistra$ sono variabili stringa, contengono la lettera inserita dall\u2019utente per selezionare il pollo (P), la volpe (V), e cos\u00ec via.<br \/>Per esempio, SceltaGiusta$ = \u201cH\u201d<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cc6cff5 elementor-widget elementor-widget-text-editor\" data-id=\"cc6cff5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Impostazione del programma\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2013<\/strong><\/p><p>Le posizioni iniziali delle parole da visualizzare sono impostate qui<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-66849e2 elementor-widget elementor-widget-code-highlight\" data-id=\"66849e2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>ux=3 \/\/ Posizione orizzontale dell'uomo\nvx=3 \/\/ per la volpe\npx=3 \/\/ per il pollo\nsx=3 \/\/ per il sacco di mais<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2f1d08f elementor-widget elementor-widget-text-editor\" data-id=\"2f1d08f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong><em>Procedure&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/em><\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b309572 elementor-widget elementor-widget-text-editor\" data-id=\"b309572\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Le procedure possono essere pensate come moduli o sezioni del programma, con ogni procedura che ha uno scopo specifico. Pensate alle procedure come a blocchi di costruzione.<\/p><p>Permettono il riutilizzo di sezioni di codice. Una procedura pu\u00f2 essere creata e testata separatamente dal programma principale.<\/p><p>Questo \u00e8 particolarmente utile nei programmi pi\u00f9 grandi.<\/p><p>Le procedure possono essere eseguite chiamandole per nome da qualsiasi parte del programma.<\/p><p>I parametri possono essere inviati alle procedure per consentire calcoli interni o decisioni logiche.<\/p><p>In questo programma abbiamo creato cinque procedure: SCHERMO, SPOSTARSIADESTRA, SPOSTARSIASINISTRA, CONTROLLAREE, INFO.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-02e225f elementor-widget elementor-widget-text-editor\" data-id=\"02e225f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong><em>Global&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/em><\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c642db6 elementor-widget elementor-widget-text-editor\" data-id=\"c642db6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Parliamo ora di un altro concetto complesso, le variabili globali. Se non lo capite, non preoccupatevi.<br \/>\u201cGlobal\u201d permette alle variabili collegate di essere viste in tutte le parti del programma, altrimenti sono locali alla procedura.<br \/>Imposteremo le nostre variabili di posizione globalmente in modo che possano essere utilizzate ovunque al di fuori delle procedure:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cc94021 elementor-widget elementor-widget-code-highlight\" data-id=\"cc94021\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>Global ux,vx,px,sx<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-da09ded elementor-widget elementor-widget-text-editor\" data-id=\"da09ded\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>If then Else Comando\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2013<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e0d4c6d elementor-widget elementor-widget-text-editor\" data-id=\"e0d4c6d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Una dichiarazione utile di \u201cIf\u201d e \u201cThen\u201d e \u201cElse\u201d per prendere semplici decisioni logiche.<br \/>If (qualcosa \u00e8 vero) Then (esegue un\u2019azione) Else (esegue un\u2019altra azione) es. If Highscore = 1000 then Print \u201cIl giocatore ha vinto\u201d else Print \u201cPurtroppo perso\u201d.<br \/>Nota: \u201cElse\u201d non \u00e8 obbligatorio, come vedrete di seguito.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9517ee0 elementor-widget elementor-widget-text-editor\" data-id=\"9517ee0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><em><strong>If End If Comando\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2013<\/strong><\/em><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-42915c5 elementor-widget elementor-widget-text-editor\" data-id=\"42915c5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Un If\u2026Then esegue azioni multiple basate su una decisione logica:<\/p><p>Esempio:<br \/>If Punti = 1000<br \/>Cancellare lo schermo<br \/>Mostra lo schermo vincente<br \/>Riprodurre un suono<br \/>End (Finisci il gioco)<br \/>End if<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7775c07 elementor-widget elementor-widget-text-editor\" data-id=\"7775c07\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong><em>Upper$ Comando\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2013<\/em><\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f8dae28 elementor-widget elementor-widget-text-editor\" data-id=\"f8dae28\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Converte una stringa nella stessa in tutte le lettere maiuscole.<br \/>Upper$(\u201cfrancois\u201d) sarebbe convertito in \u201cFRANCOIS\u201d. Per esempio, A$=Upper$(\u201cfrancois\u201d). Troviamo quindi \u201cFRANCOIS\u201d nella stringa A$.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-338fc0c elementor-widget elementor-widget-text-editor\" data-id=\"338fc0c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong><em>Cls Comando\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2013<\/em><\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-79e38a5 elementor-widget elementor-widget-text-editor\" data-id=\"79e38a5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Cancellare lo schermo. Per impostazione predefinita, lo schermo viene cancellato nel colore corrente della carta. Quando si aggiunge un numero, lo schermo viene cancellato con uno dei colori della tavolozza corrente.<\/p><p>CLS 0: Cancella lo schermo con il colore nero<br \/>CLS 1: Cancella lo schermo con il colore bianco<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e0af754 elementor-widget elementor-widget-text-editor\" data-id=\"e0af754\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong><em>Bar Comando\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2013<\/em><\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7a7d3f9 elementor-widget elementor-widget-text-editor\" data-id=\"7a7d3f9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Una barra \u00e8 un rettangolo pieno che AOZ disegna per voi.<br \/>Ad esempio, barra da 1,1 a 100,100,<br \/>Questo disegner\u00e0 un rettangolo con l&#8217;angolo superiore sinistro a 1 pixel da \/\/il bordo sinistro dello schermo e uno in basso dall&#8217;alto<br \/>e l&#8217;angolo inferiore destro a 100 in orizzontale e 100 in verticale. Il colore di riempimento del rettangolo viene impostato dal comando \u201cInk\u201d.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f73cd65 elementor-widget elementor-widget-text-editor\" data-id=\"f73cd65\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong><em>Wait n Comando\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2013<\/em><\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a864e5b elementor-widget elementor-widget-text-editor\" data-id=\"a864e5b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Come nella lezione 2, la funzione Aspetta seguita da un numero mette in pausa il programma per un certo tempo. Il tempo \u00e8 espresso in secondi e pu\u00f2 essere un numero a virgola mobile.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9a2468d elementor-widget elementor-widget-text-editor\" data-id=\"9a2468d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Wait 10, mette in pausa il programma per 10 secondi<br \/>Wait 0.5, mette in pausa il programma per mezzo secondo<br \/>Wait 0.02, mette in pausa il programma per 1\/50 di secondo<br \/>Questo pu\u00f2 essere utile per creare un effetto drammatico, ad esempio se la gallina prende il mais, allora la volpe prende il pollo!<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d4c05ee elementor-widget elementor-widget-text-editor\" data-id=\"d4c05ee\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong><em>Wait Key Comando\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2013<\/em><\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-55574e8 elementor-widget elementor-widget-text-editor\" data-id=\"55574e8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Arresta il programma finch\u00e9 l\u2019utente non preme un tasto qualsiasi.<br \/>In questo programma \u00e8 utilizzato in modo che l\u2019utente possa leggere il messaggio e riavviare il gioco<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a867ba1 elementor-widget elementor-widget-text-editor\" data-id=\"a867ba1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong><em>Do Loop Comando\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2013<\/em><\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9381e4d elementor-widget elementor-widget-text-editor\" data-id=\"9381e4d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Il comando Do e Loop crea un ciclo, una sequenza ripetuta come il ciclo del programma principale qui sotto.<\/p><p>Ecco alcune spiegazioni di ci\u00f2 che troverete nel ciclo:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1988a72 elementor-widget elementor-widget-text-editor\" data-id=\"1988a72\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>L\u2019input ferma il programma per fare una domanda, la risposta \u00e8 memorizzata in una variabile, lo sapete gi\u00e0. <br \/>Per esempio:<br \/>Input \u201cCosa dovrebbe portare dall\u2019altra parte del fiume U,V,P,S ?\u201d;SelezioneDestra$<br \/>Se l\u2019uomo \u00e8 a sinistra del fiume, (mx=3) la variabile stringa SelezioneDestra$ viene usata per passare la stringa alla procedura SPOSTARSIADESTRA.<br \/>Se l\u2019uomo \u00e8 in piedi a destra del fiume, (mx=60) la variabile stringa SelezioneSinistra$ viene usata per passare la stringa alla procedura SPOSTARSIASINISTRA.<br \/>Quando tutti nel gruppo sono sopra il fiume (posizione 60), il puzzle \u00e8 risolto e il giocatore vede un messaggio di \u201ccongratulazioni\u201d.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0d3b064 elementor-widget elementor-widget-text-editor\" data-id=\"0d3b064\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Bene, molto \u00e8 stato spiegato finora. Programmiamo il gioco e cominciamo con la nostra procedura SCREEN. Per crearlo scriviamo semplicemente: \u201cProcedura SCRERMO\u201d e aggiungiamo dei comandi e lo terminiamo aggiungendo \u201cEnd Proc\u201d alla fine.<br \/>Per utilizzare la procedura SCHERMO dobbiamo solo inserire il nome nel programma e i comandi della procedura saranno elaborati dal programma. \u00c8 pi\u00f9 facile con un esempio\u2026<\/p><p><strong><\/strong><\/p><p><strong>Iniziare dal programma principale:<\/strong><\/p><p><strong><br \/><\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-498fa43 elementor-widget elementor-widget-code-highlight\" data-id=\"498fa43\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>SCHERMO \/\/ Questo attiver\u00e0 la procedura SCHERMO che sar\u00e0 programmata in seguito. \nDo\nIf ux=3 \/\/ Quando l'uomo \u00e8 sul lato sinistro del fiume\nlocate 1,11 \/\/ Imposta la posizione del testo sul lato sinistro\nInput \"Cosa dovrebbe portare con s\u00e8 dall'altra parte U,V,P,S?\";SelezioneDestra$\n\/\/ Usiamo l'input per porre la domanda e memorizziamo la risposta in SelezioneDestra$.\nSPOSTARSIADESTRA[SelezioneDestra$] \/\/ Invia la risposta alla procedura SPOSTARSIADESTRA\nEnd if\nIf ux = 60 and vx = 60 and px = 60 and sx = 60  \/\/  Tutti riguardano il flusso Nota: >e< significa che aggiungiamo una condizione alla selezione If\nINFO[4] \/\/ Info 4 \u00e8 il messaggio \"Congratulazioni \nWait 1  \/\/ Aspetta un secondo \nEnd  \/\/ Ferma il programma\nEnd If\nIf ux=60 \/\/ L'uomo \u00e8 sul lato destro del fiume\nLocate 55,11 \/\/ Imposta la posizione del testo sul lato destro  \nInput \"Cosa dovrebbe portare con s\u00e9?\";SelezioneSinistra$ \nSPOSTARSIASINISTRA[SelezioneSinistra$]\nEnd If\nloop<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-23f75fa elementor-widget elementor-widget-text-editor\" data-id=\"23f75fa\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Ora arrivano le procedure. Come potete vedere, possono essere messi in qualsiasi punto del programma, non necessariamente all\u2019inizio.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f4fb88f elementor-widget elementor-widget-code-highlight\" data-id=\"f4fb88f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>Procedure SCHERMO<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fd2bbb7 elementor-widget elementor-widget-text-editor\" data-id=\"fd2bbb7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Questa procedura ridisegna l\u2019intero schermo. Questo \u00e8 necessario per cancellare il vecchio testo ed emettere il nuovo testo in una posizione diversa.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8e14716 elementor-widget elementor-widget-code-highlight\" data-id=\"8e14716\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>CLS 11 \/\/ Schermo chiaro con verde, (erba)\nInk 20 \/\/ Imposta il colore per il flusso\nBar 1050,0 To 1100,1180   \/\/ Disegnare il flusso con la barra x,y a x2,y2<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b79e55f elementor-widget elementor-widget-text-editor\" data-id=\"b79e55f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Impostare i colori<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fe70f1d elementor-widget elementor-widget-code-highlight\" data-id=\"fe70f1d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>Paper 11   \/\/Sfondo verde per le parole\nPen 1      \/\/Colore del testo bianco\nLocate 1,0:Print \"Un uomo deve imparare tre cose\"\nLocate 1,1:Print \"portare un flusso.\"  \nLocate 1,3: Print \"Ha una piccola barca e pu\u00f2 solo\" \nLocate 1,4:Print \"Porta te stesso e una cosa con te.\"<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-48063ba elementor-widget elementor-widget-text-editor\" data-id=\"48063ba\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Emette le stringhe nelle posizioni orizzontali (ux, vx ecc.) definite all\u2019inizio e nelle procedure SPOSTARSIADESTRA e SPOSTARSIASINISTRA.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-daeff6b elementor-widget elementor-widget-code-highlight\" data-id=\"daeff6b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>Locate ux,6:Print \"Uomo (U)\"  \nLocate vx,7:Print \"Volpe (V)\" \nLocate px,8: Print \"Pollo (P)\"\nLocate sx,9:Print \"Sacco di mais (S)\" \nCONTROLLARE \/\/ Vai alla procedura che controlla una selezione errata\nEnd Proc\nProcedure SPOSTARSIADESTRA[Ch$] \/\/ La procedura SPOSTARSIADESTRA usa la variable Ch$ come parametro\nCh$ = Upper$(Ch$) \/\/ Poich\u00e9 non sappiamo se sono state inserite lettere minuscole o maiuscole, le cambieremo tutte in maiuscole. <\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ef69995 elementor-widget elementor-widget-text-editor\" data-id=\"ef69995\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Quindi, una delle seguenti lettere: \u201cU\u201d, \u201cV\u201d, \u201cP\u201d, \u201cS\u201d o \u201cu\u201d, \u201cv\u201d, \u201cp\u201d, \u201cs\u201d viene passata alla procedura e memorizzata in Ch$.<\/p><p>Definire tutte le posizioni del testo sul lato destro del flusso<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cec15d3 elementor-widget elementor-widget-code-highlight\" data-id=\"cec15d3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>If Ch$=\"U\" then ux=60 \/\/ Solo uomo\nIf Ch$=\"V\" then vx=60:ux=60 \/\/ L'uomo deve attraversare il fiume con la volpe, il pollo o il sacco di mais\nIf Ch$=\"P\" then px=60:ux=60 \/\/ Dito\nIf Ch$=\"S\" then sx=60:ux=60 \/\/ Dito \nSCHERMO  \/\/ Una procedura pu\u00f2 anche essere chiamata da una procedura, qui per ridisegnare lo schermo.\nEnd Proc\nProcedure SPOSTARSIASINISTRA[Ch$]\n <\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4ade4e6 elementor-widget elementor-widget-text-editor\" data-id=\"4ade4e6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Vedere le note in SPOSTARSIADESTRA<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f829772 elementor-widget elementor-widget-code-highlight\" data-id=\"f829772\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>Ch$ = Upper$(Ch$)\nIf Ch$=\"U\" then ux=3\nIf Ch$=\"V\" then vx=3:ux=3\nIf Ch$=\"P\" then px=3:ux=3\nIf Ch$=\"S\" then sx=3:ux=3\nSCHERMO  \nEnd Proc\n\nProcedure CONTROLLAREE<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-644b257 elementor-widget elementor-widget-text-editor\" data-id=\"644b257\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Controllare una scelta sbagliata usando le posizioni del testo, (mx, fx ecc.) per decidere quale messaggio mostrare<br \/>La volpe, il pollo e il sacco di mais sono insieme ma l\u2019uomo no<br \/>I segni \u2018<>\u2019 non significano uguale a (o diverso da)<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a2d6504 elementor-widget elementor-widget-code-highlight\" data-id=\"a2d6504\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>If vx = px and px = sx and vx <> ux Then INFO[1] \/\/ Notate i parametri che vengono passati tra parentesi quadre alla procedura INFO[1].volpe e pollo sono insieme, l'uomo non \u00e8 con loro\n<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fd43b62 elementor-widget elementor-widget-text-editor\" data-id=\"fd43b62\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>La volpe e la gallina sono insieme, l&#8217;uomo non \u00e8 con loro<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-310a7e2 elementor-widget elementor-widget-code-highlight\" data-id=\"310a7e2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>If vx=px and ux<>px Then INFO[2] \/\/<> non significa uguale, quindi se vx=px e mx non \u00e8 hx allora il pollo e il sacco di mais sono insieme, l'uomo non \u00e8 con loro\nIf px=sx and ux<>px Then INFO[3]\nEnd Proc\n\nProcedure INFO[M]<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-41d6f10 elementor-widget elementor-widget-text-editor\" data-id=\"41d6f10\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Mostra il messaggio appropriato<br \/>Preparare il formato per l\u2019output delle stringhe dei messaggi<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f8b240c elementor-widget elementor-widget-code-highlight\" data-id=\"f8b240c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>Cls 0 \/\/ Cancella lo schermo con il colore nero\nPaper 0 \/\/ Testo di sfondo nero\nPen 4 \/\/ Testo rosso\nLocate 0,9 \/\/ Messaggio del posto\nCurs Off \/\/ Disattiva il cursore lampeggiante dello schermo<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-404e762 elementor-widget elementor-widget-text-editor\" data-id=\"404e762\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Notate come un parametro viene passato alla procedura, memorizzato nella variabile \u2018U\u2019. Si usa per selezionare e poi emettere uno dei tre messaggi<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e91e749 elementor-widget elementor-widget-code-highlight\" data-id=\"e91e749\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>If M = 1       \nCentre \"Il pollo ha mangiato il mais...\" \/\/Centrato sulla posizione come indicato sopra\nWait 1   \/\/ Metti in pausa per un secondo per un effetto drammatico!  \nLocate 1,11 \/\/  Scendi un po'.\nCentre \"...poi la volpe ha mangiato il pollo!\"\nEnd ifIf M = 2 Then Centre \"La volpe ha mangiato il pollo!\"\nIf M = 3 Then  Centre \"Il pollo ha mangiato il mais!\"\nIf M = 4 then  Centre \"Congratulazioni, ce l'hai fatta! Premere F5 per riprodurre di nuovo\"\nPaper 0: Pen 1 \/\/ Tornare ai normali colori della carta e del testo\nLocate 1,22: Centre \"Premere un tasto\"\nCurs On \/\/ Il cursore lampeggiante \u00e8 acceso\nWait key \/\/ Attendere un input\nux=3:vx=3:px=3:sx=3 \/\/ Azzerare le posizioni di partenza di SCREEN\nSCHERMO\nEnd proc<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c45110b elementor-widget elementor-widget-text-editor\" data-id=\"c45110b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>**Clicca sul pulsante \u201cRun in Browser\u201d o F1 per avviare il programma nel browser o su \u201cRun in AOZ Viewer\u201d (F2) per avviarlo nell\u2019editor.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8a70dae elementor-widget elementor-widget-text-editor\" data-id=\"8a70dae\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Ok, ora fai un respiro profondo. Avrete bisogno di un po\u2019 di tempo per capire la logica del programma. Ma imparerete molto.<br \/>Non solo molti comandi e le basi della programmazione, ma anche la logica deve essere compresa. Certo, questo pu\u00f2 richiedere un po\u2019 di tempo, ma lasciate che vi dica che una volta che avrete capito e avrete abbastanza esperienza, sarete in grado di scrivere il programma dei vostri sogni.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-faad3c6 elementor-widget elementor-widget-text-editor\" data-id=\"faad3c6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>\ud83d\ude42 <a href=\"https:\/\/rayshell.de\/it\/lezione-4\/\"><strong>Andiamo alla lezione 4<\/strong><\/a><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-531dbcb elementor-widget elementor-widget-text-editor\" data-id=\"531dbcb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Aggiornato il 23.07.2023<br \/>Testato con AOZ Studio\u2122 Versione 1.0 Aggiornamento 44 il 23.07.2023<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-fa2c762\" data-id=\"fa2c762\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Lezione 3 Benvenuti alla vostra lezione 3 di AOZ Studio\u2122 \u2013 scritta da Neil John Ives. Questa lezione sar\u00e0 estesa pi\u00f9 tardi con la lezione 6. Nell\u2019editor, clicca sul simbolo della carta in alto a sinistra per creare un nuovo progetto. Selezionare Others nel menu di sinistra e scegliere Progetto personalizzabile., cancellate la voce \u201cLa [&hellip;]<\/p>\n","protected":false},"author":153,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-22826","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Lezione 3 - RayShell Computer Department<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rayshell.de\/it\/lezione-3\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Lezione 3 - RayShell Computer Department\" \/>\n<meta property=\"og:description\" content=\"Lezione 3 Benvenuti alla vostra lezione 3 di AOZ Studio\u2122 \u2013 scritta da Neil John Ives. Questa lezione sar\u00e0 estesa pi\u00f9 tardi con la lezione 6. Nell\u2019editor, clicca sul simbolo della carta in alto a sinistra per creare un nuovo progetto. Selezionare Others nel menu di sinistra e scegliere Progetto personalizzabile., cancellate la voce \u201cLa [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rayshell.de\/it\/lezione-3\/\" \/>\n<meta property=\"og:site_name\" content=\"RayShell Computer Department\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-25T01:14:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/rayshell.de\/wp-content\/uploads\/2023\/05\/new_custom_project.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Tempo di lettura stimato\" \/>\n\t<meta name=\"twitter:data1\" content=\"9 minuti\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/rayshell.de\\\/it\\\/lezione-3\\\/\",\"url\":\"https:\\\/\\\/rayshell.de\\\/it\\\/lezione-3\\\/\",\"name\":\"Lezione 3 - RayShell Computer Department\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rayshell.de\\\/it\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/rayshell.de\\\/it\\\/lezione-3\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/rayshell.de\\\/it\\\/lezione-3\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/rayshell.de\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/new_custom_project.png\",\"datePublished\":\"2022-10-30T15:55:46+00:00\",\"dateModified\":\"2023-10-25T01:14:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/rayshell.de\\\/it\\\/lezione-3\\\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/rayshell.de\\\/it\\\/lezione-3\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/rayshell.de\\\/it\\\/lezione-3\\\/#primaryimage\",\"url\":\"https:\\\/\\\/rayshell.de\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/new_custom_project.png\",\"contentUrl\":\"https:\\\/\\\/rayshell.de\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/new_custom_project.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/rayshell.de\\\/it\\\/lezione-3\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/rayshell.de\\\/it\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lezione 3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/rayshell.de\\\/it\\\/#website\",\"url\":\"https:\\\/\\\/rayshell.de\\\/it\\\/\",\"name\":\"RayShell Computer Department\",\"description\":\"Programmare \u00e8 facile con AOZ Studio\u2122. Chiunque, a partire dai 12 anni, pu\u00f2 iniziare gratuitamente.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/rayshell.de\\\/it\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"it-IT\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Lezione 3 - RayShell Computer Department","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/rayshell.de\/it\/lezione-3\/","og_locale":"it_IT","og_type":"article","og_title":"Lezione 3 - RayShell Computer Department","og_description":"Lezione 3 Benvenuti alla vostra lezione 3 di AOZ Studio\u2122 \u2013 scritta da Neil John Ives. Questa lezione sar\u00e0 estesa pi\u00f9 tardi con la lezione 6. Nell\u2019editor, clicca sul simbolo della carta in alto a sinistra per creare un nuovo progetto. Selezionare Others nel menu di sinistra e scegliere Progetto personalizzabile., cancellate la voce \u201cLa [&hellip;]","og_url":"https:\/\/rayshell.de\/it\/lezione-3\/","og_site_name":"RayShell Computer Department","article_modified_time":"2023-10-25T01:14:42+00:00","og_image":[{"url":"https:\/\/rayshell.de\/wp-content\/uploads\/2023\/05\/new_custom_project.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Tempo di lettura stimato":"9 minuti"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/rayshell.de\/it\/lezione-3\/","url":"https:\/\/rayshell.de\/it\/lezione-3\/","name":"Lezione 3 - RayShell Computer Department","isPartOf":{"@id":"https:\/\/rayshell.de\/it\/#website"},"primaryImageOfPage":{"@id":"https:\/\/rayshell.de\/it\/lezione-3\/#primaryimage"},"image":{"@id":"https:\/\/rayshell.de\/it\/lezione-3\/#primaryimage"},"thumbnailUrl":"https:\/\/rayshell.de\/wp-content\/uploads\/2023\/05\/new_custom_project.png","datePublished":"2022-10-30T15:55:46+00:00","dateModified":"2023-10-25T01:14:42+00:00","breadcrumb":{"@id":"https:\/\/rayshell.de\/it\/lezione-3\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rayshell.de\/it\/lezione-3\/"]}]},{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/rayshell.de\/it\/lezione-3\/#primaryimage","url":"https:\/\/rayshell.de\/wp-content\/uploads\/2023\/05\/new_custom_project.png","contentUrl":"https:\/\/rayshell.de\/wp-content\/uploads\/2023\/05\/new_custom_project.png"},{"@type":"BreadcrumbList","@id":"https:\/\/rayshell.de\/it\/lezione-3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/rayshell.de\/it\/"},{"@type":"ListItem","position":2,"name":"Lezione 3"}]},{"@type":"WebSite","@id":"https:\/\/rayshell.de\/it\/#website","url":"https:\/\/rayshell.de\/it\/","name":"RayShell Computer Department","description":"Programmare \u00e8 facile con AOZ Studio\u2122. Chiunque, a partire dai 12 anni, pu\u00f2 iniziare gratuitamente.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rayshell.de\/it\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"it-IT"}]}},"_links":{"self":[{"href":"https:\/\/rayshell.de\/it\/wp-json\/wp\/v2\/pages\/22826","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rayshell.de\/it\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/rayshell.de\/it\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/rayshell.de\/it\/wp-json\/wp\/v2\/users\/153"}],"replies":[{"embeddable":true,"href":"https:\/\/rayshell.de\/it\/wp-json\/wp\/v2\/comments?post=22826"}],"version-history":[{"count":12,"href":"https:\/\/rayshell.de\/it\/wp-json\/wp\/v2\/pages\/22826\/revisions"}],"predecessor-version":[{"id":32040,"href":"https:\/\/rayshell.de\/it\/wp-json\/wp\/v2\/pages\/22826\/revisions\/32040"}],"wp:attachment":[{"href":"https:\/\/rayshell.de\/it\/wp-json\/wp\/v2\/media?parent=22826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}