-
Notifications
You must be signed in to change notification settings - Fork 0
/
hinweise.txt
42 lines (21 loc) · 997 Bytes
/
hinweise.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
- Internet Kartenkombinationen recherchieren
- für alle Kombinationen ist eine Methode notwendig
- Die Anzahl der Karten(=52) und Farben(=4) über Konstanten anlegen
- eine Methoder welcher ein Array mit 52 Stellen anlegt
und mit den Zahlen 0 bis 51 initialisiert/befüllt.
Parameter ist die Länge in dem Fall 52
- eine Methoder welcher ein Array mit 5 Stellen returniert,
Die 5 Karten/Zahlen werden aus dem Member-Array (im vorherigem Punkt angelegt)
gezogen.
Parameter der Methode ist die Anzahl der zu ziehenden Zahlen.
Die Ziehmethode ist die im Unterricht besprochene
(gezogene Zahl mit der letzten
Stelle im Array tauschen und die Zufallsrange um 1 verkleinern)
- eine Hilfs-Methode um die Farbe zu berechnen
Parameter int Zahl zB 41
Rückgabewert:
Farbe (0 bis 3, 0=Herz, 1=Kreuz, 2=Pik, 3=Karo )
- eine Hilfs-Methode um die Kartensymbolik zu berechnen
Parameter int Zahl zB 41
Rückgabewert:
Symbol (0 bis 12, 0=Zweier, 1=Dreier, .....11=König, 12=Ass )