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:29]
andrei.alexa
pm:prj2022:dbrezeanu:spanzuratoarea [2022/06/06 11:19] (current)
andrei.alexa
Line 25: Line 25:
  
 ===== Software Design ===== ===== Software Design =====
-W.I.P+
  
 <note tip> <note tip>
-Descrierea codului aplicaţiei ​(firmware): +IDE folosit : [[https://​www.arduino.cc/​en/​software|Arduino IDE 1.8.19]] 
-  ​* mediu de dezvoltare ​(if any) (e.gAVR StudioCodeVisionAVR+ 
-  ​* librării şi surse 3rd-party ​(e.gProcyon AVRlib+Cod rulat pentru resetarea placi: 
-  ​* algoritmi şi structuri pe care plănuiţi să le implementaţi +<​note>​void setup() 
-  ​(etapa 3surse şi funcţii implementate+  // put your setup code here, to run once: 
 + 
 +
 + 
 +void loop() { 
 +  ​// put your main code here, to run repeatedly:​ 
 + 
 +}</​note>​ 
 +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"​};​ 
 + 
 +void newWord() 
 +  
 +  int pick = random(NUMWORDS);​ 
 +  const char* pickWord = words[pick];​ 
 +  guessWord = pickWord; 
 +  wordSize = guessWord.length(); ​     
 +}</​note>​ 
 +Conditiile pentru a castiga/​pierde sau a reseta jocul: 
 +<​note>​void gameOver(int whatToDo) { 
 + 
 +   
 +  switch (whatToDo) { 
 +    case 0:   
 +      lcd.clear(); 
 +      lcd.setCursor(60); 
 +      ​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 38: 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.1654478954.txt.gz · Last modified: 2022/06/06 04:29 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