1 / 10

Russische roulette

Russische roulette. Live or die. 7 delen. Startmenu Inzet Aantal kogels Het schot While - functie Opnieuw ja/nee High score. Startmenu. Menu( “ Start “ , “ Begin “ , 1 , “ Stop “ , 2 ) Lbl 2 Stop Clrhome End Lbl 1 500 X 1 L. Inzet. Repeat I ≤ x

sileas
Télécharger la présentation

Russische roulette

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Russische roulette Live or die

  2. 7 delen • Startmenu • Inzet • Aantal kogels • Het schot • While - functie • Opnieuw ja/nee • High score

  3. Startmenu Menu( “ Start “ , “ Begin “ , 1 , “ Stop “ , 2 ) Lbl 2 Stop Clrhome End Lbl 1 500X 1L

  4. Inzet Repeat I≤ x Input “ inzet : ” , I End Pause Clrhome

  5. Aantal kogels Repeat k ≤ 6 Disp “Aantal kogels” Input “ ( max. 6 ) ” , k End Pause Clrhome

  6. RandInt (1,6)  R If (R – k) ≤ 0 Then 0L Else Output( 4, 7, “ Klik ! ” ) Pause Clrhome (k * I + x)  x Output( 5, 1, “Je hebt nu: ” ) Output( 6, 1, Round ( x , 2 )) End Het schot

  7. While - functie While L=1 . . If L=0 Then Output( 4, 7, “Bang !” ) Output( 5, 3, “Je bent dood) End End

  8. Opnieuw ja/nee Disp “ Opnieuw ? ” Input “ Ja=1 Nee=0 ” , A If A = 1 Then Clrhome Goto 1 Else Clrhome

  9. High score 3Dim ( LRR ) LRR (2) LRR (1) . . X LRR (2) If LRR (2) > LRR (1) Then LRR (2)  LRR (3) Output( 4, 4, “ High score : ” ) Output( 5, 6, LRR (3)) End

  10. Einde

More Related