Revisions for Project 1
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user