Exemplo n.º 1
0
        // Static Methods
        public static Card_Info interpret(string info)
        {
            Card_Info card_info;
             TextParser parser = new TextParser();

             parser.get_card_info(info, out card_info);

             return card_info;
        }
Exemplo n.º 2
0
        public int discard()
        {
            int n_discarded = 0;

             int[] choices = new int[hand.max_size];
             string raw_input = query_discard_choices();

             if (raw_input.ToLower().Equals("all"))
             {
            n_discarded = hand.discard(hand.cards);
             }
             else
             {

            TextParser parser = new TextParser();
            Card_Info[] chosen_cards = parser.extract_cards(raw_input);
            n_discarded = hand.discard(chosen_cards);
             }
             hand.draw(n_discarded);
             tell_p = decide_tell();
             return n_discarded;
        }