Revisions for Project 1

This commit is contained in:
2026-04-01 20:30:46 -04:00
parent f0dda78b43
commit 33e75d0529
3 changed files with 22 additions and 3 deletions

View File

@@ -1,3 +1,10 @@
######################################
# DCS 229 -- Unfair Solitaire
# This is the Card.py file, which defines the Card class used in the Solitaire game. The Card class represents a playing card with a suit and value, and includes methods to retrieve the suit and value, as well as a string representation of the card.
# Date: 04/01/2026
# Name: Benjamin Adovasio
# Resources Used: Fran
##########################################
class Card: class Card:
""" """
Represents a playing card with a suit and value. Represents a playing card with a suit and value.

View File

@@ -1,3 +1,11 @@
######################################
# DCS 229 -- Unfair Solitaire
# This is the Deck.py file, which defines the Deck class used in the Solitaire game. The Deck class represents a standard 52-card deck, and includes methods to shuffle the deck, deal cards, and check the number of remaining cards.
# Date: 04/01/2026
# Name: Benjamin Adovasio
# Resources Used: Fran
##########################################
import random import random
from Card import Card from Card import Card

View File

@@ -1,6 +1,10 @@
""" ######################################
This is the main file that should be called to run the simulation. # DCS 229 -- Unfair Solitaire
""" # This is the main.py file, which contains the main function to run the simulation.
# Date: 04/01/2026
# Name: Benjamin Adovasio
# Resources Used: Fran
##########################################
from Solitaire import Solitaire from Solitaire import Solitaire