Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pm:prj2022:dbrezeanu:spanzuratoarea [2022/06/06 04:37]
andrei.alexa
pm:prj2022:dbrezeanu:spanzuratoarea [2022/06/06 11:19] (current)
andrei.alexa
Line 30: Line 30:
 IDE folosit : [[https://​www.arduino.cc/​en/​software|Arduino IDE 1.8.19]] IDE folosit : [[https://​www.arduino.cc/​en/​software|Arduino IDE 1.8.19]]
  
-Cod rulat pentru resetarea placi :+Cod rulat pentru resetarea placi:
 <​note>​void setup() { <​note>​void setup() {
   // put your setup code here, to run once:   // put your setup code here, to run once:
Line 40: Line 40:
  
 }</​note>​ }</​note>​
-Variabila cu lista de cuvinte de unde alegem un cuvant random din lista :+Variabila cu lista de cuvinte de unde alegem un cuvant random din lista:
 <​note>​const char* words[] = {"​politehnica",​ "​dorna",​ "​fils",​ "​ventilator",​ "​pahar",​ "​punga",​ "​paste",​ "​examen",​ "​deodorant",​ "​elefant"​};​ <​note>​const char* words[] = {"​politehnica",​ "​dorna",​ "​fils",​ "​ventilator",​ "​pahar",​ "​punga",​ "​paste",​ "​examen",​ "​deodorant",​ "​elefant"​};​
  
Line 50: Line 50:
   wordSize = guessWord.length(); ​       wordSize = guessWord.length(); ​    
 }</​note>​ }</​note>​
 +Conditiile pentru a castiga/​pierde sau a reseta jocul:
 +<​note>​void gameOver(int whatToDo) {
 +
 +  ​
 +  switch (whatToDo) {
 +    case 0:  ​
 +      lcd.clear();​
 +      lcd.setCursor(6,​ 0);
 +      lcd.print("​AI"​);​
 +      lcd.setCursor(6,​ 1);
 +      lcd.print("​PIERDUT"​);​
 +
 +      ​
 +      break;
 +    case 1:  ​
 +      lcd.clear();​
 +      lcd.setCursor(4,​ 0);
 +      lcd.print("​AI"​);​
 +      lcd.setCursor(4,​ 1);
 +      lcd.print("​CASTIGAT"​);​
 +
 +     
 +  }
 +  delay(2000);​
 +  resetFunc(); ​     ​
 +}
 +</​note>​
 </​note>​ </​note>​
  
Line 55: Line 82:
 {{:​pm:​prj2022:​dbrezeanu:​andreialexaresult.jpg?​400|}} {{:​pm:​prj2022:​dbrezeanu:​andreialexaresult.jpg?​400|}}
 <note tip> <note tip>
-Filmare : *coming soon*+Filmare : {{:​pm:​prj2022:​dbrezeanu:​andreialexaspanzuratoarea.rar|}}
 </​note>​ </​note>​
  
pm/prj2022/dbrezeanu/spanzuratoarea.1654479470.txt.gz · Last modified: 2022/06/06 04:37 by andrei.alexa
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0