{"id":436826,"date":"2018-07-25T04:40:21","date_gmt":"2018-07-25T04:40:21","guid":{"rendered":"https:\/\/essaypaper.org\/black-jack-game-development-with-java\/"},"modified":"2018-10-24T09:00:46","modified_gmt":"2018-10-24T09:00:46","slug":"black-jack-game-development-with-java","status":"publish","type":"post","link":"https:\/\/www.benedictsol.com\/blogs\/black-jack-game-development-with-java\/","title":{"rendered":"Black Jack Game Development With Java"},"content":{"rendered":"<div>\n<p style=\"text-align: justify;\">Black Jack Game Development With Java:<\/p>\n<p style=\"text-align: justify;\"><strong>Black Jack Game Overview<\/strong><\/p>\n<p style=\"text-align: justify;\">Blackjack game is a gambling club saved money amusement, implying that players contend with the house as opposed to each other. The goal is to get a hand aggregate of nearer to 21 than the merchant without busting.<\/p>\n<p style=\"text-align: justify;\">Toward the beginning of a Blackjack diversion, the players and the merchant get two cards each. The players\u2019 cards are typically managed look up, while the merchant has one face down\u00a0 and one face up. The most ideal Blackjack hand is an opening arrangement of an ace with any ten-point card.<\/p>\n<p style=\"text-align: justify;\">The house preferred standpoint of this diversion is gotten from a few decides which support the merchant. The most noteworthy of these is that player must act before the merchant, enabling the player to bust and lose their wager before the merchant plays.<\/p>\n<p style=\"text-align: justify;\">Players ought to know that there is another card diversion called Black Jack in the UK which is a completely extraordinary card amusement, adequately the same as Crazy Eights.<\/p>\n<p style=\"text-align: justify;\"><strong>Game development approach<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>Data structure<\/strong><\/p>\n<p style=\"text-align: justify;\">In programming languages, like java programming language, data structures are the methods which are used in the process of storing data and organizing data in the structure so that the data stored can be used smoothly.<\/p>\n<p style=\"text-align: justify;\">In relation to the java programming language which is used in the development of the program, the following are the data structures which is used in this regard.<\/p>\n<ol style=\"text-align: justify;\">\n<li>Stacks<\/li>\n<\/ol>\n<p style=\"text-align: justify;\">This data structure is used in the development of the game in order to push collected data and pop the results after the game has been played. The stacks data structure is used in the process of development of the game in such a way that the card which is selected is stored in the stacks then after the processing has been done then it pops out the results.<\/p>\n<p style=\"text-align: justify;\">Below is the code snippet of the stacks used in the game<\/p>\n<p style=\"text-align: justify;\">public long peek() {<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return stackArr[top];<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0}<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0private void increaseStackCapacity(){<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0int[] newStack = new int[this.stackSize*2];<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0for(int i=0;i&lt;stackSize;i++){<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0newStack[i] = this.stackArr[i];<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0this.stackArr = newStack;<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0this.stackSize = this.stackSize*2;\u00a0\u00a0\u00a0\u00a0}<\/p>\n<p style=\"text-align: justify;\"><strong>Object oriented technology Used<\/strong><\/p>\n<p style=\"text-align: justify;\">Since java is an object oriented programming language, the game was developed with employment of the following technology.<\/p>\n<p style=\"text-align: justify;\"><strong>Inheritance <\/strong><\/p>\n<p style=\"text-align: justify;\">For the development to be success, inheritance was used for this purpose, the class GameMain is the main class where other sub classes like the Cards, Deck, player and suits inherits some properties in order to avoid repetition.<\/p>\n<p style=\"text-align: justify;\">The following is the Pseudocode in which states the workability of the game<\/p>\n<p style=\"text-align: justify;\">Start<\/p>\n<p style=\"text-align: justify;\">Select cards<\/p>\n<p style=\"text-align: justify;\">If player is one<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0 Stop play<\/p>\n<p style=\"text-align: justify;\">If player is more than one<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0 Play<\/p>\n<p style=\"text-align: justify;\">If Cash is zero<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0 Stop Playing<\/p>\n<p style=\"text-align: justify;\">If Player win<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0 Stop play<\/p>\n<p style=\"text-align: justify;\">End<\/p>\n<p style=\"text-align: justify;\"><strong>Black jack game rules<\/strong><\/p>\n<p style=\"text-align: justify;\">The black jack game that was developed using java programming language has the following rules.<\/p>\n<p style=\"text-align: justify;\">Stand ; this happens when the player is content with the aggregate they\u2019ve been managed they can stand, making no further move and going to the following player. The player might make the move after the other player activities as long as their hand add up to isn\u2019t more than 21. The hand flag to Stand is waving a level hand over the cards.<\/p>\n<p style=\"text-align: justify;\">Hit ; If the player wishes to take another card they flag to the merchant to by scratching the felt close to their hand or indicating their hand. A solitary card is then played face up onto their hand. In the event that the hand add up to is under 21 the player can hit again or Stand. On the off chance that the aggregate is 21 the hand consequently stands. In the event that the aggregate is more than 21 the hand is bust, the player\u2019s wagered is taken by the house and the swing to act goes to the following player.<\/p>\n<p style=\"text-align: justify;\">Twofold Down ; If the player considers they have an ideal hand, for the most part a sum of 9, 10 or 11, they can twofold \u2018Down\u2019. To do this they put a moment bet equivalent to their first close to their first bet. A player who copies down gets precisely one more card look up and is then compelled to stand paying little mind to the aggregate. This choice is just accessible on the player\u2019s two-card beginning hand. A few gambling clubs will limit which beginning hand aggregates can be multiplied.<\/p>\n<p style=\"text-align: justify;\">Split ; \u00a0If the player\u2019s initial two cards are of coordinating rank they can put down an extra wager equivalent to their unique wager and split the cards into two hands. Where the player does this the cards are isolated and an extra card is managed to finish each hand. On the off chance that either hand gets a moment card of coordinating rank the player might be offered the choice to part once more, however this relies upon the tenets in the gambling club. For the most part the player is permitted a greatest of 4 hands after which no further parts are permitted. The split hands are played each one in turn in the request in which they were managed, from the merchant\u2019s left to the delaer\u2019s correct. The player has all the typical choices: stand, hit or twofold down.<\/p>\n<p style=\"text-align: justify;\">Surrender the game developed allows player to surrender, reclaiming a large portion of their wager and surrendering their hand. Surrender must be the player\u2019s first and final activity on the hand. In the most common variant, known as Late Surrender, it is after the merchant has checked the opening card and does not have a Blackjack.<\/p>\n<p style=\"text-align: justify;\"><strong>Conclusion<\/strong><\/p>\n<p style=\"text-align: justify;\">The black jack game developed in its normal operation is effective enough to operate just like the traditional black jack game and therefore it is recommended to be used by the gamers and players of the traditional game since this has totally settled the whole processes.<\/p>\n<p style=\"text-align: justify;\"><strong>References<\/strong><\/p>\n<p style=\"text-align: justify;\">Mehlhorn, K., 2013.\u00a0<em>Data structures and algorithms 1: Sorting and searching<\/em>\u00a0(Vol. 1). Springer Science &amp; Business Media.<\/p>\n<p style=\"text-align: justify;\">Lancaster, E.W. and Kastner, S.R., IGT Inc, 2012.\u00a0<em>Gaming system with blackjack primary game and poker secondary game<\/em>. U.S. Patent 8,157,631.<\/p>\n<p style=\"text-align: justify;\">Yarbrough, J., Video Gaming Technologies Inc, 2011.\u00a0<em>System and method for simulating the outcome of an electronic bingo game as a blackjack game<\/em>. U.S. Patent 7,896,736.<\/p>\n<div class=\"wp_rp_wrap  wp_rp_plain\" id=\"wp_rp_first\">\n<div class=\"wp_rp_content\">\n<h3 class=\"related_post_title\">Related Assignment Samples<\/h3>\n<ul class=\"related_post wp_rp\">\n<li data-position=\"0\" data-poid=\"in-17621\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">July 9, 2018<\/small> Black Jack Game Development with Java: 750311<\/li>\n<li data-position=\"1\" data-poid=\"in-16588\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">November 2, 2017<\/small> Project Charter Program : 636855<\/li>\n<li data-position=\"2\" data-poid=\"in-16208\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">August 9, 2017<\/small> CPU Scheduling:592901<\/li>\n<li data-position=\"3\" data-poid=\"in-16799\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">December 22, 2017<\/small> Coding for Java Application : 653338<\/li>\n<li data-position=\"4\" data-poid=\"in-17511\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">June 20, 2018<\/small> Epidemiology: 747513<\/li>\n<li data-position=\"5\" data-poid=\"in-17129\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">March 12, 2018<\/small> PLC Progrmming: 684183<\/li>\n<li data-position=\"6\" data-poid=\"in-17088\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">March 10, 2018<\/small> PLC PROGRMMING -684183<\/li>\n<li data-position=\"7\" data-poid=\"in-17513\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">June 20, 2018<\/small> Web Application Development using Java Three Tier Architecture: 749668<\/li>\n<li data-position=\"8\" data-poid=\"in-16937\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">January 18, 2018<\/small> Current Trends in Networking : 651756<\/li>\n<li data-position=\"9\" data-poid=\"in-16806\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">December 26, 2017<\/small> The Construction Work And Plan Building : 659900<\/li>\n<li data-position=\"10\" data-poid=\"in-16987\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">February 13, 2018<\/small> Business management (Project Report: Financial Accounting ) : 157734<\/li>\n<li data-position=\"11\" data-poid=\"in-17525\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">June 22, 2018<\/small> Computer Systems and Networks: 734844<\/li>\n<li data-position=\"12\" data-poid=\"in-17699\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">July 24, 2018<\/small> App in Java Netbeans: 762395<\/li>\n<li data-position=\"13\" data-poid=\"in-17273\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">May 17, 2018<\/small> Media and Communication: 698447<\/li>\n<li data-position=\"14\" data-poid=\"in-16474\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">October 11, 2017<\/small> Engineering Construction(Coke Production):632598<\/li>\n<li data-position=\"15\" data-poid=\"in-16870\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">December 26, 2017<\/small> Managing Under Uncertainty : 652727<\/li>\n<li data-position=\"16\" data-poid=\"in-17695\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">July 16, 2018<\/small> Purchasing Behaviour: 756262<\/li>\n<li data-position=\"17\" data-poid=\"in-17010\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">February 19, 2018<\/small> Wide Area Networks : 166707<\/li>\n<li data-position=\"18\" data-poid=\"in-16444\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">October 9, 2017<\/small> Represetation in Digital Media:636786<\/li>\n<li data-position=\"19\" data-poid=\"in-17468\" data-post-type=\"none\"><small class=\"wp_rp_publish_date\">June 14, 2018<\/small> Occupational Health Management Plan for Mining Industry: 745631<\/li>\n<\/ul>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Black Jack Game Development With Java: Black Jack Game Overview Blackjack game is a gambling club saved money amusement, implying that players contend with the house as opposed to each other. The goal is to get a hand aggregate of <a href=\"https:\/\/www.benedictsol.com\/blogs\/black-jack-game-development-with-java\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,15],"tags":[],"class_list":["post-436826","post","type-post","status-publish","format-standard","hentry","category-education","category-essay-paper-writing"],"_links":{"self":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/436826","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/comments?post=436826"}],"version-history":[{"count":0,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/436826\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/media?parent=436826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/categories?post=436826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/tags?post=436826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}