<repo_name>ismael101/Card-Game-Java<file_sep>/src/com/ismael/Card.java
package com.ismael;
public class Card {
    private String suits;
    private int number;

    //this is the card class that contains all the attributes of a card

    Card(int num,String suit){
        this.number = num;
        this.suits = suit;
    }

    @Override
    public String toString() {
        String fullCard;
       if (number!=11){
           fullCard =  number +" of "+ suits; }
        else{
           fullCard = "Ace of "+ suits;
       }
        return fullCard;}


    //Qaalib helped me with this part of my code

    //This retruns the number of the card
    public int getNumber() {
        return number;
    }

    //this returns the suit of the card if needed
    public String getSuits() {
        return suits;
    }

    //this allows me to check if to cards have the same suits
    public boolean checksuits(Card cardsuits){
        Boolean flag;
        if(cardsuits.suits == this.suits){ flag = true; }
        else{flag = false;}
        return flag;}
}
<file_sep>/src/com/ismael/Computer.java
package com.ismael;

import java.util.ArrayList;
import java.util.Random;

public class Computer {
    //i created a instance of the deck
    Deck deck = new Deck();
    ArrayList<Card> cpucards = deck.ComputerCard();

    // this returns the card of a given position in the Arraylist
    public Card getCard(int position) {
        return cpucards.get(position);
    }
    //this was used in debugging tomsee all the cards of the computers deck and they were effected
    public void showCards(){
        int counter = 0;
        for(Card i: cpucards){
            System.out.println(counter+" # "+i);
            counter = counter+1;}}
    //this deletes a card after the after it is used in a round
    public void deleteCard(int position){
        cpucards.remove(position);
        System.out.println("CPU CARD REMOVED");
    }
}
