-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Feature jlam #2
Conversation
|
||
namespace Casino | ||
class MainClass |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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]; |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
Hung's changes