Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature jlam #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Feature jlam #2

wants to merge 2 commits into from

Conversation

j-lam-ucd
Copy link
Owner

Hung's changes


namespace Casino
class MainClass
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should just make this namespace Casino

public static void Main(string[] args)
{

//TEST SECTION
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can make a tester function for this


//update the board with the card dealt to each player

string[,] deck = new string[52, 2];
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably make a class Dealer and make the deck a private variable.

{
class Program

public static void Main(string[] args)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should make class program and encapsulate main function within


//(Not fully functional when called repeatedly. Works for 1 use at a time)
//Generate a single random card by returning its index.
public static int randomcard(string[,] deck)
Copy link
Owner Author

@j-lam-ucd j-lam-ucd Jun 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should make this a private method within Class Dealer and then use a public method called perhaps "DealCard()" that uses this private method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant