IL MIO PRIMO MINIGIOCO AMATORIALE IN C++ // MY FIRST AMATEUR MINI-GAME IN C ++
ENG
Hello everyone, friends, today I'm going to talk a little about what I like to do, in fact for those who don't know I'm studying computer science and I really enjoy programming on my own, let's say, following the rules is not really for me, but anyway I also like to do the programmes that are given to us in class, in which I spend more or less 10/20 minutes writing the code and thinking about the logic, then I go and improve it etc.
In the last few years I've been making a game and improving it more and more, until I got overwhelmed with PGM and couldn't continue with the development, which took me up to the current base with the knowledge I had before 4-5 hours, not counting the hours I spent thinking about how to improve it.
Anyway, the code is as follows , written in C++ on the Dev-C++ programme
#include <iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
int main(){
int scelta, a=1;
int casuale=0;
int i=0;
// fase visiva
system("cls");
cout<<"\t_____________________________"<<endl;
cout<<"\t| |"<<endl;
cout<<"\t| SCACCIA VIA! |"<<endl;
cout<<"\t|___________________________|"<<endl;
cout<<endl;
cout<<"\t________________________________"<<endl;
cout<<"\t| COME GIOCARE... |"<<endl;
cout<<"\t| |"<<endl;
cout<<"\t| Digita 1 per andare sopra |"<<endl;
cout<<"\t| Digita 2 per andare a destra |"<<endl;
cout<<"\t| Digita 3 per andare sotto |"<<endl;
cout<<"\t| La |A| e' il tuo personaggio |"<<endl;
cout<<"\t| Porta la |A| alla vittoria |"<<endl;
cout<<"\t| Se sbagli riparti da 0 |"<<endl;
cout<<"\t|______________________________|"<<endl;
cout<<endl;
system("PAUSE");
cout<<endl;
cout<<endl;
cout<<"\t Questi sono i percossi che ti possono uscire: "<<endl;
cout<<endl;
cout<<" 1)"<<endl;
cout<<"\t WIN "<<endl;
cout<<"\t______________________________ __________"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| ____________ | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | |_________| |"<<endl;
cout<<"\t| A | | |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t|__________| |_______________________|"<<endl;
cout<<endl;
cout<<" 2)"<<endl;
cout<<"\t"<<endl;
cout<<"\t_______________________ _________________ ________________"<<endl;
cout<<"\t| | | |______| |"<<endl;
cout<<"\t| A | | WIN! |"<<endl;
cout<<"\t| | | ________ GOOD JOB! |"<<endl;
cout<<"\t|_______________ | | ___________| |______________|"<<endl;
cout<<"\t | | | |"<<endl;
cout<<"\t | |__________| |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t |______________________|"<<endl;
cout<<endl;
cout<<"Se te la senti digita un numero: "<<endl;
cin>>a;
//fase di scelta del livello
srand(time(NULL));
casuale=1+rand()%2;
cout<<"\t____________________________________________"<<endl;
cout<<"\t| |"<<endl;
cout<<"\t|Perfetto ecco il livello che ti e' uscito |"<<endl;
cout<<"\t|__________________________________________|"<<endl;
switch(casuale){
case 1:
cout<<"\t WIN "<<endl;
cout<<"\t______________________________ __________"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| ____________ | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | |_________| |"<<endl;
cout<<"\t| A | | |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t|__________| |_______________________|"<<endl;
//Fase di risoluzione del gioco 1°
cout<<endl;
cout<<"\t Fai la tua prima mossa: ";
cin>>scelta;
// Riassegnazione di a=1
a=1;
while(i!=6){
switch(scelta){
case 1:
if(a==1){
cout<<"\t WIN "<<endl;
cout<<"\t______________________________ __________"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| A | | |"<<endl;
cout<<"\t| ____________ | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | |_________| |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t|__________| |_______________________|"<<endl;
cout<<endl;
a=2;
cout<<"\t Scegli la mossa da fare "<<endl;
cin>>scelta;
}
if(a==5){
cout<<"\t WIN "<<endl;
cout<<"\t______________________________ __________"<<endl;
cout<<"\t| | | A |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| ____________ | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | |_________| |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t|__________| |_______________________|"<<endl;
cout<<endl;
cout<<"\t___________________________________"<<endl;
cout<<"\t| |"<<endl;
cout<<"\t| HAI VINTO! COMPLIMENTI! :) |"<<endl;
cout<<"\t|_________________________________|"<<endl;
i=6;
}
break;
case 2:
if(a==2){
cout<<"\t WIN "<<endl;
cout<<"\t______________________________ __________"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| A | | |"<<endl;
cout<<"\t| ____________ | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | |_________| |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t|__________| |_______________________|"<<endl;
a=3;
cout<<endl;
cout<<"\t Scegli la mossa da fare "<<endl;
cin>>scelta;
}
if(a==4){
cout<<"\t WIN "<<endl;
cout<<"\t______________________________ __________"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| ____________ | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | |_________| |"<<endl;
cout<<"\t| | | A |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t|__________| |_______________________|"<<endl;
a=5;
cout<<endl;
cout<<"\t Scegli la mossa finale da fare "<<endl;
cin>>scelta;
}
break;
case 3:
if(a==3){
cout<<"\t WIN "<<endl;
cout<<"\t______________________________ __________"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| ____________ | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | |_________| |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| | | A |"<<endl;
cout<<"\t|__________| |_______________________|"<<endl;
a=4;
cout<<endl;
cout<<"\t Scegli la mossa da fare "<<endl;
cin>>scelta;
}else{
cout<<endl;
cout<<"\t Hai sbagliato! mi dispiace..."<<endl;
a=1;
cout<<endl;
cout<<"\t Meglio che ricominci altrimenti ti dara' un altro errore! ";
cin>>scelta;
}
break;
default: cout<<"HAI SBAGLIATO!"<<endl;
i=6;
}
}
break;
// Fase di risulizione giocio 2°
case 2:
cout<<"\t"<<endl;
cout<<"\t_______________________ _________________ ________________"<<endl;
cout<<"\t| | | |______| |"<<endl;
cout<<"\t| A | | WIN! |"<<endl;
cout<<"\t| | | ________ GOOD JOB! |"<<endl;
cout<<"\t|_______________ | | ___________| |______________|"<<endl;
cout<<"\t | | | |"<<endl;
cout<<"\t | |__________| |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t |______________________|"<<endl;
cout<<endl;
scelta=0;
cout<<"\t Fai la tua prima mossa: ";
cin>>scelta;
a=1;
while(i!=6){
switch(scelta){
case 1:
if(a==4){
cout<<"\t_______________________ _________________ ________________"<<endl;
cout<<"\t| | | |______| |"<<endl;
cout<<"\t| | | A WIN! |"<<endl;
cout<<"\t| | | ________ GOOD JOB! |"<<endl;
cout<<"\t|_______________ | | ___________| |______________|"<<endl;
cout<<"\t | | | |"<<endl;
cout<<"\t | |__________| |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t |______________________|"<<endl;
a=5;
cout<<endl;
cout<<"\t Scegli la mossa da fare "<<endl;
cin>>scelta;
}else{
cout<<endl;
cout<<"\t Hai sbagliato! mi dispiace..."<<endl;
a=1;
cout<<endl;
cout<<"\t Meglio che ricominci altrimenti ti dara' un altro errore! ";
cin>>scelta;
}
break;
case 2:
if(a==1){
cout<<"\t_______________________ _________________ ________________"<<endl;
cout<<"\t| | | |______| |"<<endl;
cout<<"\t| A | | WIN! |"<<endl;
cout<<"\t| | | ________ GOOD JOB! |"<<endl;
cout<<"\t|_______________ | | ___________| |______________|"<<endl;
cout<<"\t | | | |"<<endl;
cout<<"\t | |__________| |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t |______________________|"<<endl;
a=2;
cout<<endl;
cout<<"\t Scegli la mossa da fare "<<endl;
cin>>scelta;
}
if(a==3){
cout<<"\t_______________________ _________________ ________________"<<endl;
cout<<"\t| | | |______| |"<<endl;
cout<<"\t| | | WIN! |"<<endl;
cout<<"\t| | | ________ GOOD JOB! |"<<endl;
cout<<"\t|_______________ | | ___________| |______________|"<<endl;
cout<<"\t | | | |"<<endl;
cout<<"\t | |__________| |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t | A |"<<endl;
cout<<"\t |______________________|"<<endl;
a=4;
cout<<endl;
cout<<"\t Scegli la mossa da fare "<<endl;
cin>>scelta;
}
if(a==5){
cout<<"\t_______________________ _________________ ________________"<<endl;
cout<<"\t| | | |______| |"<<endl;
cout<<"\t| | | A WIN! |"<<endl;
cout<<"\t| | | ________ GOOD JOB! |"<<endl;
cout<<"\t|_______________ | | ___________| |______________|"<<endl;
cout<<"\t | | | |"<<endl;
cout<<"\t | |__________| |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t |______________________|"<<endl;
cout<<endl;
cout<<"\t___________________________________"<<endl;
cout<<"\t| |"<<endl;
cout<<"\t| HAI VINTO! COMPLIMENTI! :) |"<<endl;
cout<<"\t|_________________________________|"<<endl;
i=6;
}
break;
case 3:
if(a==2){
cout<<"\t_______________________ _________________ ________________"<<endl;
cout<<"\t| | | |______| |"<<endl;
cout<<"\t| | | WIN! |"<<endl;
cout<<"\t| | | ________ GOOD JOB! |"<<endl;
cout<<"\t|_______________ | | ___________| |______________|"<<endl;
cout<<"\t | | | |"<<endl;
cout<<"\t | |__________| |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t | A |"<<endl;
cout<<"\t |______________________|"<<endl;
a=3;
cout<<endl;
cout<<"\t Scegli la mossa da fare "<<endl;
cin>>scelta;
}else{
cout<<endl;
cout<<"\t Hai sbagliato! mi dispiace..."<<endl;
a=1;
cout<<endl;
cout<<"\t Meglio che ricominci altrimenti ti dara' un altro errore! ";
cin>>scelta;
}
break;
}
}
}
}
Il programma comprende circa 420 stringe di codice , ma effettive saranno circa 350/325 , ora non so dirvelo di preciso , comunque vorrei spiegarvi in maniera molto rapida come ho creato questo codice:
La mia idea era quella di creare un percorso molto semplice che con una serie di tasti digitati portavano il personaggio (LETTERA A) avanti e fino alla fine del programma.
Questo non è stato affatto semplice , non tanto per la complessità , ma più che altro per la difficoltà nel trovare le soluzioni per evitare che gli utenti che andavano a provare il mio gioco premendo due volte lo stesso tasto potessero superare subito il programma , e poi i messaggi di avviso che avevi sbagliato ecc , veramente un casino , stavo esplodendo.
Per fortuna mi è venuto in soccorso @mirafun che mi ha aiutato un sacco per fortuna!
Ora credo che andrò a migliorare questo gioco e chissà se lo andrò a pubblicare un giorno , per sfizio , quando sarò milionario AHAHA :)
ITA
Ciao a tutti amici e amiche , oggi parlo un pò di quello che mi piace fare , infatti per chi non lo sapesse sto studiando informatica e mi diverte molto programmare per i fatti miei diciamo , seguire le regole non è proprio per me , ma comunque mi piace anche fare i programmi che ci vengono dati in classe , nei quali ci metto più o meno 10/20 minuti per scrivere il codice e pensare alla logica , poi lo vado a migliorare ecc.
In quest'ultimo periodo mi sono messo a creare un gioco e sono andato a migliorarlo sempre di più , finche con PGM non sono stato sommerso di roba da fare e quindi non ho potuto continuare lo sviluppo il quale mi ha richiesto , fino alla base attuale con le conoscenze che avevo prima 4/5 ore , senza contare le ore nella quale pensavo a come migliorarlo.
Comunque il codice è il seguente , scritto in C++ sul programma Dev-C++
#include <iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
int main(){
int scelta, a=1;
int casuale=0;
int i=0;
// fase visiva
system("cls");
cout<<"\t_____________________________"<<endl;
cout<<"\t| |"<<endl;
cout<<"\t| SCACCIA VIA! |"<<endl;
cout<<"\t|___________________________|"<<endl;
cout<<endl;
cout<<"\t________________________________"<<endl;
cout<<"\t| COME GIOCARE... |"<<endl;
cout<<"\t| |"<<endl;
cout<<"\t| Digita 1 per andare sopra |"<<endl;
cout<<"\t| Digita 2 per andare a destra |"<<endl;
cout<<"\t| Digita 3 per andare sotto |"<<endl;
cout<<"\t| La |A| e' il tuo personaggio |"<<endl;
cout<<"\t| Porta la |A| alla vittoria |"<<endl;
cout<<"\t| Se sbagli riparti da 0 |"<<endl;
cout<<"\t|______________________________|"<<endl;
cout<<endl;
system("PAUSE");
cout<<endl;
cout<<endl;
cout<<"\t Questi sono i percossi che ti possono uscire: "<<endl;
cout<<endl;
cout<<" 1)"<<endl;
cout<<"\t WIN "<<endl;
cout<<"\t______________________________ __________"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| ____________ | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | |_________| |"<<endl;
cout<<"\t| A | | |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t|__________| |_______________________|"<<endl;
cout<<endl;
cout<<" 2)"<<endl;
cout<<"\t"<<endl;
cout<<"\t_______________________ _________________ ________________"<<endl;
cout<<"\t| | | |______| |"<<endl;
cout<<"\t| A | | WIN! |"<<endl;
cout<<"\t| | | ________ GOOD JOB! |"<<endl;
cout<<"\t|_______________ | | ___________| |______________|"<<endl;
cout<<"\t | | | |"<<endl;
cout<<"\t | |__________| |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t |______________________|"<<endl;
cout<<endl;
cout<<"Se te la senti digita un numero: "<<endl;
cin>>a;
//fase di scelta del livello
srand(time(NULL));
casuale=1+rand()%2;
cout<<"\t____________________________________________"<<endl;
cout<<"\t| |"<<endl;
cout<<"\t|Perfetto ecco il livello che ti e' uscito |"<<endl;
cout<<"\t|__________________________________________|"<<endl;
switch(casuale){
case 1:
cout<<"\t WIN "<<endl;
cout<<"\t______________________________ __________"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| ____________ | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | |_________| |"<<endl;
cout<<"\t| A | | |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t|__________| |_______________________|"<<endl;
//Fase di risoluzione del gioco 1°
cout<<endl;
cout<<"\t Fai la tua prima mossa: ";
cin>>scelta;
// Riassegnazione di a=1
a=1;
while(i!=6){
switch(scelta){
case 1:
if(a==1){
cout<<"\t WIN "<<endl;
cout<<"\t______________________________ __________"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| A | | |"<<endl;
cout<<"\t| ____________ | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | |_________| |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t|__________| |_______________________|"<<endl;
cout<<endl;
a=2;
cout<<"\t Scegli la mossa da fare "<<endl;
cin>>scelta;
}
if(a==5){
cout<<"\t WIN "<<endl;
cout<<"\t______________________________ __________"<<endl;
cout<<"\t| | | A |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| ____________ | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | |_________| |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t|__________| |_______________________|"<<endl;
cout<<endl;
cout<<"\t___________________________________"<<endl;
cout<<"\t| |"<<endl;
cout<<"\t| HAI VINTO! COMPLIMENTI! :) |"<<endl;
cout<<"\t|_________________________________|"<<endl;
i=6;
}
break;
case 2:
if(a==2){
cout<<"\t WIN "<<endl;
cout<<"\t______________________________ __________"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| A | | |"<<endl;
cout<<"\t| ____________ | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | |_________| |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t|__________| |_______________________|"<<endl;
a=3;
cout<<endl;
cout<<"\t Scegli la mossa da fare "<<endl;
cin>>scelta;
}
if(a==4){
cout<<"\t WIN "<<endl;
cout<<"\t______________________________ __________"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| ____________ | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | |_________| |"<<endl;
cout<<"\t| | | A |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t|__________| |_______________________|"<<endl;
a=5;
cout<<endl;
cout<<"\t Scegli la mossa finale da fare "<<endl;
cin>>scelta;
}
break;
case 3:
if(a==3){
cout<<"\t WIN "<<endl;
cout<<"\t______________________________ __________"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| ____________ | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | | | |"<<endl;
cout<<"\t| | | |_________| |"<<endl;
cout<<"\t| | | |"<<endl;
cout<<"\t| | | A |"<<endl;
cout<<"\t|__________| |_______________________|"<<endl;
a=4;
cout<<endl;
cout<<"\t Scegli la mossa da fare "<<endl;
cin>>scelta;
}else{
cout<<endl;
cout<<"\t Hai sbagliato! mi dispiace..."<<endl;
a=1;
cout<<endl;
cout<<"\t Meglio che ricominci altrimenti ti dara' un altro errore! ";
cin>>scelta;
}
break;
default: cout<<"HAI SBAGLIATO!"<<endl;
i=6;
}
}
break;
// Fase di risulizione giocio 2°
case 2:
cout<<"\t"<<endl;
cout<<"\t_______________________ _________________ ________________"<<endl;
cout<<"\t| | | |______| |"<<endl;
cout<<"\t| A | | WIN! |"<<endl;
cout<<"\t| | | ________ GOOD JOB! |"<<endl;
cout<<"\t|_______________ | | ___________| |______________|"<<endl;
cout<<"\t | | | |"<<endl;
cout<<"\t | |__________| |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t |______________________|"<<endl;
cout<<endl;
scelta=0;
cout<<"\t Fai la tua prima mossa: ";
cin>>scelta;
a=1;
while(i!=6){
switch(scelta){
case 1:
if(a==4){
cout<<"\t_______________________ _________________ ________________"<<endl;
cout<<"\t| | | |______| |"<<endl;
cout<<"\t| | | A WIN! |"<<endl;
cout<<"\t| | | ________ GOOD JOB! |"<<endl;
cout<<"\t|_______________ | | ___________| |______________|"<<endl;
cout<<"\t | | | |"<<endl;
cout<<"\t | |__________| |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t |______________________|"<<endl;
a=5;
cout<<endl;
cout<<"\t Scegli la mossa da fare "<<endl;
cin>>scelta;
}else{
cout<<endl;
cout<<"\t Hai sbagliato! mi dispiace..."<<endl;
a=1;
cout<<endl;
cout<<"\t Meglio che ricominci altrimenti ti dara' un altro errore! ";
cin>>scelta;
}
break;
case 2:
if(a==1){
cout<<"\t_______________________ _________________ ________________"<<endl;
cout<<"\t| | | |______| |"<<endl;
cout<<"\t| A | | WIN! |"<<endl;
cout<<"\t| | | ________ GOOD JOB! |"<<endl;
cout<<"\t|_______________ | | ___________| |______________|"<<endl;
cout<<"\t | | | |"<<endl;
cout<<"\t | |__________| |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t |______________________|"<<endl;
a=2;
cout<<endl;
cout<<"\t Scegli la mossa da fare "<<endl;
cin>>scelta;
}
if(a==3){
cout<<"\t_______________________ _________________ ________________"<<endl;
cout<<"\t| | | |______| |"<<endl;
cout<<"\t| | | WIN! |"<<endl;
cout<<"\t| | | ________ GOOD JOB! |"<<endl;
cout<<"\t|_______________ | | ___________| |______________|"<<endl;
cout<<"\t | | | |"<<endl;
cout<<"\t | |__________| |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t | A |"<<endl;
cout<<"\t |______________________|"<<endl;
a=4;
cout<<endl;
cout<<"\t Scegli la mossa da fare "<<endl;
cin>>scelta;
}
if(a==5){
cout<<"\t_______________________ _________________ ________________"<<endl;
cout<<"\t| | | |______| |"<<endl;
cout<<"\t| | | A WIN! |"<<endl;
cout<<"\t| | | ________ GOOD JOB! |"<<endl;
cout<<"\t|_______________ | | ___________| |______________|"<<endl;
cout<<"\t | | | |"<<endl;
cout<<"\t | |__________| |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t |______________________|"<<endl;
cout<<endl;
cout<<"\t___________________________________"<<endl;
cout<<"\t| |"<<endl;
cout<<"\t| HAI VINTO! COMPLIMENTI! :) |"<<endl;
cout<<"\t|_________________________________|"<<endl;
i=6;
}
break;
case 3:
if(a==2){
cout<<"\t_______________________ _________________ ________________"<<endl;
cout<<"\t| | | |______| |"<<endl;
cout<<"\t| | | WIN! |"<<endl;
cout<<"\t| | | ________ GOOD JOB! |"<<endl;
cout<<"\t|_______________ | | ___________| |______________|"<<endl;
cout<<"\t | | | |"<<endl;
cout<<"\t | |__________| |"<<endl;
cout<<"\t | |"<<endl;
cout<<"\t | A |"<<endl;
cout<<"\t |______________________|"<<endl;
a=3;
cout<<endl;
cout<<"\t Scegli la mossa da fare "<<endl;
cin>>scelta;
}else{
cout<<endl;
cout<<"\t Hai sbagliato! mi dispiace..."<<endl;
a=1;
cout<<endl;
cout<<"\t Meglio che ricominci altrimenti ti dara' un altro errore! ";
cin>>scelta;
}
break;
}
}
}
}
Il programma comprende circa 420 stringe di codice , ma effettive saranno circa 350/325 , ora non so dirvelo di preciso , comunque vorrei spiegarvi in maniera molto rapida come ho creato questo codice:
La mia idea era quella di creare un percorso molto semplice che con una serie di tasti digitati portavano il pers*onaggio (LETTERA A) avanti e fino alla fine del programma.
Questo non è stato affatto semplice , non tanto per la complessità , ma più che altro per la difficoltà nel trovare le soluzioni per evitare che gli utenti che andavano a provare il mio gioco premendo due volte lo stesso tasto potessero superare subito il programma , e poi i messaggi di avviso che avevi sbagliato ecc , veramente un casino , stavo esplodendo.
Per fortuna mi è venuto in soccorso @mirafun che mi ha aiutato un sacco per fortuna!
Ora credo che andrò a migliorare questo gioco e chissà se lo andrò a pubblicare un giorno , per sfizio , quando sarò milionario AHAHA :)
Follow me on
TWITTER ---> https://twitter.com/zottone444
TORUM ---> https://www.torum.com/u/zottone444
HYPPER ---> https://hyprr.com/profile/zottone444
NOISECASH ---> https://noise.cash/u/Zottone444
READCASH ---> https://read.cash/@Zottone444
BLURT ---> https://blurt.world/@zottone444
JOIN ON TELEGRAM ITALIAN GROUP ---> https://t.me/hiveitaly
FOLLOW HIVE ITALIA ON ---> Twitter -- Instagram -- Fecebook
photo by me / @hashkings /hive-engine
If you want to buy/sell Dcity cards with the PGM token from the NFTM.art shop click here
My private socials
Instagram---> ale_zotta_
Twitch ---> zottone
Links that may be useful to you for the PGM token
Buy it here
If you don't know how to buy the PGM token click here
If you want to know what projects we collaborate with, click here and here
If you want to become a sponsor of the project click here
joins the PGM discord server
FOLLOWE PGM ON TWITTER
Buy games by paying with hive-HDB-Pizza Token here @thebeardflex
To buy my microphone click here
To join my fortnite community click here
5 years this has been happening to me, it started here, around people that are still here. Homeland security has done nothing at all, they are not here to protect us. Dont we pay them to stop shit like this? The NSA, CIA, FBI, Police and our Government has done nothing. Just like they did with the Havana Syndrome, nothing. Patriot Act my ass. The American government is completely incompetent. The NSA should be taken over by the military and contained Immediately for investigation. I bet we can get to the sources of V2K and RNM then. https://peakd.com/gangstalking/@acousticpulses/electronic-terrorism-and-gaslighting--if-you-downvote-this-post-you-are-part-of-the-problem
5 years this has been happening to me, it started here, around people that are still here. Homeland security has done nothing at all, they are not here to protect us. Dont we pay them to stop shit like this? The NSA, CIA, FBI, Police and our Government has done nothing. Just like they did with the Havana Syndrome, nothing. Patriot Act my ass. The American government is completely incompetent. The NSA should be taken over by the military and contained Immediately for investigation. I bet we can get to the sources of V2K and RNM then. https://peakd.com/gangstalking/@acousticpulses/electronic-terrorism-and-gaslighting--if-you-downvote-this-post-you-are-part-of-the-problem
You have a brilliant mind, my friend.
!PGM
(After the first code you have a part written in Italian in the English section, in case you want to check)
BUY AND STAKE THE PGM TO SEND A LOT OF TOKENS!
The tokens that the command sends are: 0.1 PGM-0.1 LVL-2.5 BUDS-0.01 MOTA-0.05 DEC-15 SBT-1 STARBITS-0.00000001 BTC (SWWAP.BTC)
Discord
Support the curation account @ pgm-curator with a delegation 10 HP - 50 HP - 100 HP - 500 HP - 1000 HP
Get potential votes from @ pgm-curator by paying in PGM, here is a guide
I'm a bot, if you want a hand ask @ zottone444
Thanks a lot! Oh, now I'm going to check! Sorry
@tipu curate
Upvoted 👌 (Mana: 18/38) Liquid rewards.
Grazie mille!
Bravo, un po' alla volta farai anche questo.
!PGM
BUY AND STAKE THE PGM TO SEND A LOT OF TOKENS!
The tokens that the command sends are: 0.1 PGM-0.1 LVL-2.5 BUDS-0.01 MOTA-0.05 DEC-15 SBT-1 STARBITS-0.00000001 BTC (SWWAP.BTC)
Discord
Support the curation account @ pgm-curator with a delegation 10 HP - 50 HP - 100 HP - 500 HP - 1000 HP
Get potential votes from @ pgm-curator by paying in PGM, here is a guide
I'm a bot, if you want a hand ask @ zottone444
Speriamo! ;) !PGM
BUY AND STAKE THE PGM TO SEND A LOT OF TOKENS!
The tokens that the command sends are: 0.1 PGM-0.1 LVL-2.5 BUDS-0.01 MOTA-0.05 DEC-15 SBT-1 STARBITS-0.00000001 BTC (SWWAP.BTC)
Discord
Support the curation account @ pgm-curator with a delegation 10 HP - 50 HP - 100 HP - 500 HP - 1000 HP
Get potential votes from @ pgm-curator by paying in PGM, here is a guide
I'm a bot, if you want a hand ask @ zottone444
Dai che è un buon inizio, !hivebits
Si , non è malaccio!
io, ad esempio, non ci capisco un cazzo ahahah
però se sarai ricco e farai uscire il gioco ci conto per dei potenziamenti gratuiti ahahah
!PGM
BUY AND STAKE THE PGM TO SEND A LOT OF TOKENS!
The tokens that the command sends are: 0.1 PGM-0.1 LVL-2.5 BUDS-0.01 MOTA-0.05 DEC-15 SBT-1 STARBITS-0.00000001 BTC (SWWAP.BTC)
Discord
Support the curation account @ pgm-curator with a delegation 10 HP - 50 HP - 100 HP - 500 HP - 1000 HP
Get potential votes from @ pgm-curator by paying in PGM, here is a guide
I'm a bot, if you want a hand ask @ zottone444
Ovviamente ! AHAH
!1UP This fried my brain, a small sample of what I'm going to face in my next area of studies? Wish me good luck haha !
Sorry I'm late, but good luck! AH AH
You have received a 1UP from @michupa!
@oneup-curator, @leo-curator, @ctp-curator, @ccc-curator, @vyb-curator, @pob-curator, @pal-curator
And they will bring !PIZZA 🍕
Learn more about our delegation service to earn daily rewards. Join the family on Discord.
PIZZA Holders sent $PIZZA tips in this post's comments:
@curation-cartel(7/20) tipped @zottone444 (x1)
Learn more at https://hive.pizza.