Mainly because they both represent a blackjack player (the dealer and the player). I suggest to reformat the entire thing, to make the code look more familiar and easier to read for the majority of Java coders. In Eclipse the keyboard shortcut is Control-Shift-fThere's a quite a lot to improve on this. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. You have another problem as well--You declare your array with a size of 12:I am building a Blackjack game using Object Oriented Programming.Aside from that, looking good, keep it up!But then you try to assign it 13 values in setCard. Blackjack. Clone or download Clone with HTTPS Use Git or checkout with SVN … I am building a Blackjack game using Object Oriented Programming. I cannot for the life of me figure this out and could use some help. The correct strategy is laid out in the text file "bjin.txt" which should reside in the same directory as the program. \$\begingroup\$ I am well aware of that the assignent of values for the cards is not the most lifelike, but this is a very simple game that more or less just "does what it's supposed to", without me knowing anything about BlackJack (This is based on the first half of the programming by doing site's BlackJack) \$\endgroup\$ – Gemtastic Oct 28 '14 at 17:51 In fact most of the other comments in the code don't add value either.The best code doesn't need comments.Look through all the comments in your code,if they are not needed, then remove them,if they are needed, then try to change the code in a way to not need comments.To subscribe to this RSS feed, copy and paste this URL into your RSS reader. I want to implement insurance and splitting, so any advice to help prepare the code for eventually adding those features would be really helpful! Start by entering a random seed: 5 You currently have 1000 fake dollars. I was wondering, seeing as it is my first multi class program, if you could help me optimize it and/or give me any advice. How much do you want to bet? Here are a couple of tips to get your started.Code Review Stack Exchange is a question and answer site for peer programmer code reviews.

I'm trying to create a blackjack program for school and I don't understand why my program keeps starting over after i ask for another card once I get my first two cards. It allows the user to play Blackjack against a single dealer, with no other players at the table. I deleted the part where I import the pictures of cards to cut down on code.