Presentation is loading. Please wait.

Presentation is loading. Please wait.

Static. שינוי במחלקה DECK static private Card[] deck;

Similar presentations


Presentation on theme: "Static. שינוי במחלקה DECK static private Card[] deck;"— Presentation transcript:

1 Static

2 שינוי במחלקה DECK static private Card[] deck;

3 מה זה משנה ? using System; namespace BlackJack { class Program { static void Main(string[] args) { Hand me = new Hand(); Hand you = new Hand(); Deck x = new Deck(); Deck y = new Deck(); x.shuffle(); y.shuffle();//This doesn't help!!! Card card1 = x.dealCard(); Console.WriteLine("I was dealt {0} ", card1.toString()); card1 = y.dealCard(); Console.WriteLine("I was dealt {0} ", card1.toString()); card1 = x.dealCard(); Console.WriteLine("I was dealt {0} ", card1.toString()); card1 = y.dealCard(); Console.WriteLine("I was dealt {0} ", card1.toString()); me.addCard(card1); Console.ReadKey(); }


Download ppt "Static. שינוי במחלקה DECK static private Card[] deck;"

Similar presentations


Ads by Google