1 / 3

barvaReverzu==MODRA

Nastav hodnotu návěští. Reverz. // Nastavím reverz. // Nastavím líc. barvaReverzu==MODRA. hodnotaKarty==ZOLIK. // Vyberu barvu žolíku. // Nastavím hodnotu a barvu karty. barvaReverzu==MODRA. navesti = „RB“. navesti = „RR“. Nastav hodnotu a barvu karty. navesti = „JB“. navesti = „ JR“.

etan
Télécharger la présentation

barvaReverzu==MODRA

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. Nastav hodnotu návěští Reverz // Nastavím reverz // Nastavím líc barvaReverzu==MODRA hodnotaKarty==ZOLIK // Vyberu barvu žolíku // Nastavím hodnotu a barvu karty barvaReverzu==MODRA navesti=„RB“ navesti=„RR“ Nastav hodnotu a barvu karty navesti=„JB“ navesti=„JR“ if (reverz) { //nastavím reverz If (barvaReverzu==MODRA) { navesti="RB"; } else { navesti="RR"; } } else { //nastavim lic if (hodnotaKarty==ZOLIK) { //pokud zolik nak podle barvy reverzu if (barvaReverzu==MODRA) { navesti="JB"; } else { navesti="JR"; } } else { //nastavim podle barvy karty ……… } }

  2. Nastav hodnotu a barvu karty BarvaKarty KRIZE PIKY KARA SRDCE navesti=„H“ + navestiHodnotyKarty() navesti=„D“ + navestiHodnotyKarty() navesti=„S“ + navestiHodnotyKarty() navesti=„C“ + navestiHodnotyKarty() //nastavim podle barvy karty switch (barvaKarty) { case SRDCE : navesti="H"+navestiHodnotyKarty(); break; case KARA : navesti="D"+navestiHodnotyKarty(); break; case PIKY : navesti="S"+navestiHodnotyKarty(); break; case KRIZE : navesti="C"+navestiHodnotyKarty(); break; }

  3. Nastav hodnotu karty switch (hodnotaKarty) { case 2 : navesti="2"; break; case 3 : navesti="3"; break; case 4 : navesti="5"; break; case 5 : navesti="5"; break; case 6 : navesti="6"; break; case 7 : navesti="7"; break; case 8 : navesti="8"; break; case 9 : navesti="9"; break; case 10 : navesti="10"; break; case J : navesti="J"; break; case Q : navesti="Q"; break; case K : navesti="K"; break; case A : navesti="A"; break; } HodnotaKarty 6 7 8 5 4 3 2 navesti=„2“ navesti=„3“ navesti=„6“ navesti=„7“ navesti=„8“ navesti=„4“ navesti=„5“ K Q J 10 A 9 navesti=„10“ navesti=„J“ navesti=„Q“ navesti=„K“ navesti=„A“ navesti=„9“

More Related