4 kişinin oynadığı bir okey oyununu kurgulayınız.
Okey taşları 0'dan 52'ye kadar aşağıdaki gibi rakamlarla ifade edilmiş olsun:
sarı-1 = 0 ... sarı-13 = 12
mavi-1 = 13 ... mavi-13 = 25
siyah-1 = 26 ... siyah-13 = 38
kırmızı-1 = 39 ... kırmızı-13 = 51
sahte-okey = 52
Taşları bir diziye her taştan 2 adet ve toplamda 106 adet olacak şekilde doldurup karıştırın.
Karıştırdığınız diziden rastgele bir gösterge taşı seçin ve seçtiğiniz taşın aynı renkteki bir fazlasını okey taşı olarak belirleyin. Seçeceğiniz rastgele bir kişiye 15 diğer 3 kişiye 14 taş olacak şekilde dağıtın.
Dağıttınız ellerden okey kurallarına en iyi(bitmeye en yakın el) olanı bulup ekrana yazınız.