From: lenovo Date: Sat, 23 Nov 2013 15:39:16 +0000 (+0000) Subject: first commit X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=8c763a2e14cb22672d71ba3758d0597ba22fc3a0;p=Blackjack.git first commit --- 8c763a2e14cb22672d71ba3758d0597ba22fc3a0 diff --git a/Blackjack.exe b/Blackjack.exe new file mode 100644 index 0000000..7cec211 Binary files /dev/null and b/Blackjack.exe differ diff --git a/COPYING.txt b/COPYING.txt new file mode 100644 index 0000000..818433e --- /dev/null +++ b/COPYING.txt @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..efdc6e8 --- /dev/null +++ b/README.txt @@ -0,0 +1,3 @@ +To start program, run Blackjack.exe +To view the source code of this program, open src +To view the license of this program, open COPYING.txt \ No newline at end of file diff --git a/src/Blackjack.sln b/src/Blackjack.sln new file mode 100644 index 0000000..7653434 --- /dev/null +++ b/src/Blackjack.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Blackjack", "Blackjack\Blackjack.vbproj", "{C10E3BCC-91CC-4358-A93A-74E2895D064E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C10E3BCC-91CC-4358-A93A-74E2895D064E}.Debug|x86.ActiveCfg = Debug|x86 + {C10E3BCC-91CC-4358-A93A-74E2895D064E}.Debug|x86.Build.0 = Debug|x86 + {C10E3BCC-91CC-4358-A93A-74E2895D064E}.Release|x86.ActiveCfg = Release|x86 + {C10E3BCC-91CC-4358-A93A-74E2895D064E}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/src/Blackjack.suo b/src/Blackjack.suo new file mode 100644 index 0000000..3592953 Binary files /dev/null and b/src/Blackjack.suo differ diff --git a/src/Blackjack/Blackjack.Designer.vb b/src/Blackjack/Blackjack.Designer.vb new file mode 100644 index 0000000..59a4a24 --- /dev/null +++ b/src/Blackjack/Blackjack.Designer.vb @@ -0,0 +1,505 @@ + _ +Partial Class Blackjack + Inherits System.Windows.Forms.Form + + 'Form overrides dispose to clean up the component list. + _ + Protected Overrides Sub Dispose(ByVal disposing As Boolean) + Try + If disposing AndAlso components IsNot Nothing Then + components.Dispose() + End If + Finally + MyBase.Dispose(disposing) + End Try + End Sub + + 'Required by the Windows Form Designer + Private components As System.ComponentModel.IContainer + + 'NOTE: The following procedure is required by the Windows Form Designer + 'It can be modified using the Windows Form Designer. + 'Do not modify it using the code editor. + _ + Private Sub InitializeComponent() + Me.CmdHit = New System.Windows.Forms.Button() + Me.CmdDeal = New System.Windows.Forms.Button() + Me.CmdSplit = New System.Windows.Forms.Button() + Me.CmdDoubleDown = New System.Windows.Forms.Button() + Me.CmdStand = New System.Windows.Forms.Button() + Me.TxtTotal = New System.Windows.Forms.TextBox() + Me.LblTotal = New System.Windows.Forms.Label() + Me.LblBet = New System.Windows.Forms.Label() + Me.TxtBet = New System.Windows.Forms.TextBox() + Me.TxtPlayerCard1 = New System.Windows.Forms.TextBox() + Me.TxtPlayerCard2 = New System.Windows.Forms.TextBox() + Me.TxtPlayerCard3 = New System.Windows.Forms.TextBox() + Me.TxtPlayerCard4 = New System.Windows.Forms.TextBox() + Me.TxtPlayerCard5 = New System.Windows.Forms.TextBox() + Me.LblYou = New System.Windows.Forms.Label() + Me.LblStatus = New System.Windows.Forms.Label() + Me.LblDesc1 = New System.Windows.Forms.Label() + Me.LblDesc2 = New System.Windows.Forms.Label() + Me.LblDesc3 = New System.Windows.Forms.Label() + Me.LblDealer = New System.Windows.Forms.Label() + Me.TxtSplit5 = New System.Windows.Forms.TextBox() + Me.TxtSplit4 = New System.Windows.Forms.TextBox() + Me.TxtSplit3 = New System.Windows.Forms.TextBox() + Me.TxtSplit2 = New System.Windows.Forms.TextBox() + Me.TxtSplit1 = New System.Windows.Forms.TextBox() + Me.TxtDealerCard5 = New System.Windows.Forms.TextBox() + Me.TxtDealerCard4 = New System.Windows.Forms.TextBox() + Me.TxtDealerCard3 = New System.Windows.Forms.TextBox() + Me.TxtDealerCard2 = New System.Windows.Forms.TextBox() + Me.TxtDealerCard1 = New System.Windows.Forms.TextBox() + Me.LblDesc4 = New System.Windows.Forms.Label() + Me.CmdRules = New System.Windows.Forms.Button() + Me.SuspendLayout() + ' + 'CmdHit + ' + Me.CmdHit.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.CmdHit.Location = New System.Drawing.Point(28, 497) + Me.CmdHit.Name = "CmdHit" + Me.CmdHit.Size = New System.Drawing.Size(97, 42) + Me.CmdHit.TabIndex = 0 + Me.CmdHit.Text = "Hit" + Me.CmdHit.UseVisualStyleBackColor = True + ' + 'CmdDeal + ' + Me.CmdDeal.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.CmdDeal.Location = New System.Drawing.Point(440, 497) + Me.CmdDeal.Name = "CmdDeal" + Me.CmdDeal.Size = New System.Drawing.Size(97, 42) + Me.CmdDeal.TabIndex = 1 + Me.CmdDeal.Text = "Deal" + Me.CmdDeal.UseVisualStyleBackColor = True + ' + 'CmdSplit + ' + Me.CmdSplit.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.CmdSplit.Location = New System.Drawing.Point(337, 497) + Me.CmdSplit.Name = "CmdSplit" + Me.CmdSplit.Size = New System.Drawing.Size(97, 42) + Me.CmdSplit.TabIndex = 2 + Me.CmdSplit.Text = "Split" + Me.CmdSplit.UseVisualStyleBackColor = True + ' + 'CmdDoubleDown + ' + Me.CmdDoubleDown.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.CmdDoubleDown.Location = New System.Drawing.Point(234, 497) + Me.CmdDoubleDown.Name = "CmdDoubleDown" + Me.CmdDoubleDown.Size = New System.Drawing.Size(97, 42) + Me.CmdDoubleDown.TabIndex = 3 + Me.CmdDoubleDown.Text = "Double Down" + Me.CmdDoubleDown.UseVisualStyleBackColor = True + ' + 'CmdStand + ' + Me.CmdStand.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.CmdStand.Location = New System.Drawing.Point(131, 497) + Me.CmdStand.Name = "CmdStand" + Me.CmdStand.Size = New System.Drawing.Size(97, 42) + Me.CmdStand.TabIndex = 4 + Me.CmdStand.Text = "Stand" + Me.CmdStand.UseVisualStyleBackColor = True + ' + 'TxtTotal + ' + Me.TxtTotal.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.TxtTotal.Location = New System.Drawing.Point(660, 460) + Me.TxtTotal.Name = "TxtTotal" + Me.TxtTotal.ReadOnly = True + Me.TxtTotal.Size = New System.Drawing.Size(136, 26) + Me.TxtTotal.TabIndex = 5 + Me.TxtTotal.Text = "100" + ' + 'LblTotal + ' + Me.LblTotal.AutoSize = True + Me.LblTotal.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.LblTotal.ForeColor = System.Drawing.SystemColors.ControlLightLight + Me.LblTotal.Location = New System.Drawing.Point(556, 460) + Me.LblTotal.Name = "LblTotal" + Me.LblTotal.Size = New System.Drawing.Size(98, 20) + Me.LblTotal.TabIndex = 6 + Me.LblTotal.Text = "Your money:" + ' + 'LblBet + ' + Me.LblBet.AutoSize = True + Me.LblBet.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.LblBet.ForeColor = System.Drawing.SystemColors.ControlLightLight + Me.LblBet.Location = New System.Drawing.Point(575, 492) + Me.LblBet.Name = "LblBet" + Me.LblBet.Size = New System.Drawing.Size(79, 20) + Me.LblBet.TabIndex = 7 + Me.LblBet.Text = "Enter bet:" + ' + 'TxtBet + ' + Me.TxtBet.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.TxtBet.Location = New System.Drawing.Point(660, 494) + Me.TxtBet.Name = "TxtBet" + Me.TxtBet.Size = New System.Drawing.Size(136, 26) + Me.TxtBet.TabIndex = 8 + ' + 'TxtPlayerCard1 + ' + Me.TxtPlayerCard1.BackColor = System.Drawing.SystemColors.ButtonHighlight + Me.TxtPlayerCard1.Font = New System.Drawing.Font("Microsoft Sans Serif", 36.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.TxtPlayerCard1.Location = New System.Drawing.Point(30, 342) + Me.TxtPlayerCard1.Multiline = True + Me.TxtPlayerCard1.Name = "TxtPlayerCard1" + Me.TxtPlayerCard1.ReadOnly = True + Me.TxtPlayerCard1.Size = New System.Drawing.Size(94, 125) + Me.TxtPlayerCard1.TabIndex = 9 + Me.TxtPlayerCard1.Visible = False + Me.TxtPlayerCard1.WordWrap = False + ' + 'TxtPlayerCard2 + ' + Me.TxtPlayerCard2.BackColor = System.Drawing.SystemColors.ButtonHighlight + Me.TxtPlayerCard2.Font = New System.Drawing.Font("Microsoft Sans Serif", 36.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.TxtPlayerCard2.Location = New System.Drawing.Point(134, 342) + Me.TxtPlayerCard2.Multiline = True + Me.TxtPlayerCard2.Name = "TxtPlayerCard2" + Me.TxtPlayerCard2.ReadOnly = True + Me.TxtPlayerCard2.Size = New System.Drawing.Size(94, 125) + Me.TxtPlayerCard2.TabIndex = 10 + Me.TxtPlayerCard2.Visible = False + Me.TxtPlayerCard2.WordWrap = False + ' + 'TxtPlayerCard3 + ' + Me.TxtPlayerCard3.BackColor = System.Drawing.SystemColors.ButtonHighlight + Me.TxtPlayerCard3.Font = New System.Drawing.Font("Microsoft Sans Serif", 36.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.TxtPlayerCard3.Location = New System.Drawing.Point(237, 342) + Me.TxtPlayerCard3.Multiline = True + Me.TxtPlayerCard3.Name = "TxtPlayerCard3" + Me.TxtPlayerCard3.ReadOnly = True + Me.TxtPlayerCard3.Size = New System.Drawing.Size(94, 125) + Me.TxtPlayerCard3.TabIndex = 11 + Me.TxtPlayerCard3.Visible = False + Me.TxtPlayerCard3.WordWrap = False + ' + 'TxtPlayerCard4 + ' + Me.TxtPlayerCard4.BackColor = System.Drawing.SystemColors.ButtonHighlight + Me.TxtPlayerCard4.Font = New System.Drawing.Font("Microsoft Sans Serif", 36.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.TxtPlayerCard4.Location = New System.Drawing.Point(340, 342) + Me.TxtPlayerCard4.Multiline = True + Me.TxtPlayerCard4.Name = "TxtPlayerCard4" + Me.TxtPlayerCard4.ReadOnly = True + Me.TxtPlayerCard4.Size = New System.Drawing.Size(94, 125) + Me.TxtPlayerCard4.TabIndex = 12 + Me.TxtPlayerCard4.Visible = False + Me.TxtPlayerCard4.WordWrap = False + ' + 'TxtPlayerCard5 + ' + Me.TxtPlayerCard5.BackColor = System.Drawing.SystemColors.ButtonHighlight + Me.TxtPlayerCard5.Font = New System.Drawing.Font("Microsoft Sans Serif", 36.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.TxtPlayerCard5.Location = New System.Drawing.Point(443, 342) + Me.TxtPlayerCard5.Multiline = True + Me.TxtPlayerCard5.Name = "TxtPlayerCard5" + Me.TxtPlayerCard5.ReadOnly = True + Me.TxtPlayerCard5.Size = New System.Drawing.Size(94, 125) + Me.TxtPlayerCard5.TabIndex = 13 + Me.TxtPlayerCard5.Visible = False + Me.TxtPlayerCard5.WordWrap = False + ' + 'LblYou + ' + Me.LblYou.AutoSize = True + Me.LblYou.Font = New System.Drawing.Font("Microsoft Sans Serif", 24.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.LblYou.ForeColor = System.Drawing.SystemColors.ControlLightLight + Me.LblYou.Location = New System.Drawing.Point(592, 384) + Me.LblYou.Name = "LblYou" + Me.LblYou.Size = New System.Drawing.Size(87, 37) + Me.LblYou.TabIndex = 14 + Me.LblYou.Text = "YOU" + ' + 'LblStatus + ' + Me.LblStatus.AutoSize = True + Me.LblStatus.Font = New System.Drawing.Font("Microsoft Sans Serif", 15.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.LblStatus.ForeColor = System.Drawing.Color.Cyan + Me.LblStatus.Location = New System.Drawing.Point(574, 281) + Me.LblStatus.Name = "LblStatus" + Me.LblStatus.Size = New System.Drawing.Size(147, 25) + Me.LblStatus.TabIndex = 15 + Me.LblStatus.Text = "Current status" + ' + 'LblDesc1 + ' + Me.LblDesc1.AutoSize = True + Me.LblDesc1.Font = New System.Drawing.Font("Old English Text MT", 48.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.LblDesc1.Location = New System.Drawing.Point(50, 204) + Me.LblDesc1.Name = "LblDesc1" + Me.LblDesc1.Size = New System.Drawing.Size(469, 77) + Me.LblDesc1.TabIndex = 16 + Me.LblDesc1.Text = "BLACKJACK" + ' + 'LblDesc2 + ' + Me.LblDesc2.AutoSize = True + Me.LblDesc2.Font = New System.Drawing.Font("Lucida Calligraphy", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.LblDesc2.Location = New System.Drawing.Point(81, 281) + Me.LblDesc2.Name = "LblDesc2" + Me.LblDesc2.Size = New System.Drawing.Size(394, 21) + Me.LblDesc2.TabIndex = 17 + Me.LblDesc2.Text = "H17 Split to 2 No double after split" + ' + 'LblDesc3 + ' + Me.LblDesc3.AutoSize = True + Me.LblDesc3.Font = New System.Drawing.Font("Lucida Calligraphy", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.LblDesc3.Location = New System.Drawing.Point(88, 305) + Me.LblDesc3.Name = "LblDesc3" + Me.LblDesc3.Size = New System.Drawing.Size(395, 21) + Me.LblDesc3.TabIndex = 18 + Me.LblDesc3.Text = "Blackjack pays 3:2 Insurance pays 2:1" + ' + 'LblDealer + ' + Me.LblDealer.AutoSize = True + Me.LblDealer.Font = New System.Drawing.Font("Microsoft Sans Serif", 24.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.LblDealer.ForeColor = System.Drawing.SystemColors.ControlLightLight + Me.LblDealer.Location = New System.Drawing.Point(592, 68) + Me.LblDealer.Name = "LblDealer" + Me.LblDealer.Size = New System.Drawing.Size(144, 37) + Me.LblDealer.TabIndex = 19 + Me.LblDealer.Text = "DEALER" + ' + 'TxtSplit5 + ' + Me.TxtSplit5.BackColor = System.Drawing.SystemColors.ButtonHighlight + Me.TxtSplit5.Font = New System.Drawing.Font("Microsoft Sans Serif", 36.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.TxtSplit5.Location = New System.Drawing.Point(444, 209) + Me.TxtSplit5.Multiline = True + Me.TxtSplit5.Name = "TxtSplit5" + Me.TxtSplit5.ReadOnly = True + Me.TxtSplit5.Size = New System.Drawing.Size(94, 125) + Me.TxtSplit5.TabIndex = 24 + Me.TxtSplit5.Visible = False + Me.TxtSplit5.WordWrap = False + ' + 'TxtSplit4 + ' + Me.TxtSplit4.BackColor = System.Drawing.SystemColors.ButtonHighlight + Me.TxtSplit4.Font = New System.Drawing.Font("Microsoft Sans Serif", 36.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.TxtSplit4.Location = New System.Drawing.Point(341, 209) + Me.TxtSplit4.Multiline = True + Me.TxtSplit4.Name = "TxtSplit4" + Me.TxtSplit4.ReadOnly = True + Me.TxtSplit4.Size = New System.Drawing.Size(94, 125) + Me.TxtSplit4.TabIndex = 23 + Me.TxtSplit4.Visible = False + Me.TxtSplit4.WordWrap = False + ' + 'TxtSplit3 + ' + Me.TxtSplit3.BackColor = System.Drawing.SystemColors.ButtonHighlight + Me.TxtSplit3.Font = New System.Drawing.Font("Microsoft Sans Serif", 36.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.TxtSplit3.Location = New System.Drawing.Point(238, 209) + Me.TxtSplit3.Multiline = True + Me.TxtSplit3.Name = "TxtSplit3" + Me.TxtSplit3.ReadOnly = True + Me.TxtSplit3.Size = New System.Drawing.Size(94, 125) + Me.TxtSplit3.TabIndex = 22 + Me.TxtSplit3.Visible = False + Me.TxtSplit3.WordWrap = False + ' + 'TxtSplit2 + ' + Me.TxtSplit2.BackColor = System.Drawing.SystemColors.ButtonHighlight + Me.TxtSplit2.Font = New System.Drawing.Font("Microsoft Sans Serif", 36.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.TxtSplit2.Location = New System.Drawing.Point(135, 209) + Me.TxtSplit2.Multiline = True + Me.TxtSplit2.Name = "TxtSplit2" + Me.TxtSplit2.ReadOnly = True + Me.TxtSplit2.Size = New System.Drawing.Size(94, 125) + Me.TxtSplit2.TabIndex = 21 + Me.TxtSplit2.Visible = False + Me.TxtSplit2.WordWrap = False + ' + 'TxtSplit1 + ' + Me.TxtSplit1.BackColor = System.Drawing.SystemColors.ButtonHighlight + Me.TxtSplit1.Font = New System.Drawing.Font("Microsoft Sans Serif", 36.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.TxtSplit1.Location = New System.Drawing.Point(31, 209) + Me.TxtSplit1.Multiline = True + Me.TxtSplit1.Name = "TxtSplit1" + Me.TxtSplit1.ReadOnly = True + Me.TxtSplit1.Size = New System.Drawing.Size(94, 125) + Me.TxtSplit1.TabIndex = 20 + Me.TxtSplit1.Visible = False + Me.TxtSplit1.WordWrap = False + ' + 'TxtDealerCard5 + ' + Me.TxtDealerCard5.BackColor = System.Drawing.SystemColors.ButtonHighlight + Me.TxtDealerCard5.Font = New System.Drawing.Font("Microsoft Sans Serif", 36.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.TxtDealerCard5.Location = New System.Drawing.Point(444, 30) + Me.TxtDealerCard5.Multiline = True + Me.TxtDealerCard5.Name = "TxtDealerCard5" + Me.TxtDealerCard5.ReadOnly = True + Me.TxtDealerCard5.Size = New System.Drawing.Size(94, 125) + Me.TxtDealerCard5.TabIndex = 29 + Me.TxtDealerCard5.Visible = False + Me.TxtDealerCard5.WordWrap = False + ' + 'TxtDealerCard4 + ' + Me.TxtDealerCard4.BackColor = System.Drawing.SystemColors.ButtonHighlight + Me.TxtDealerCard4.Font = New System.Drawing.Font("Microsoft Sans Serif", 36.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.TxtDealerCard4.Location = New System.Drawing.Point(341, 30) + Me.TxtDealerCard4.Multiline = True + Me.TxtDealerCard4.Name = "TxtDealerCard4" + Me.TxtDealerCard4.ReadOnly = True + Me.TxtDealerCard4.Size = New System.Drawing.Size(94, 125) + Me.TxtDealerCard4.TabIndex = 28 + Me.TxtDealerCard4.Visible = False + Me.TxtDealerCard4.WordWrap = False + ' + 'TxtDealerCard3 + ' + Me.TxtDealerCard3.BackColor = System.Drawing.SystemColors.ButtonHighlight + Me.TxtDealerCard3.Font = New System.Drawing.Font("Microsoft Sans Serif", 36.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.TxtDealerCard3.Location = New System.Drawing.Point(238, 30) + Me.TxtDealerCard3.Multiline = True + Me.TxtDealerCard3.Name = "TxtDealerCard3" + Me.TxtDealerCard3.ReadOnly = True + Me.TxtDealerCard3.Size = New System.Drawing.Size(94, 125) + Me.TxtDealerCard3.TabIndex = 27 + Me.TxtDealerCard3.Visible = False + Me.TxtDealerCard3.WordWrap = False + ' + 'TxtDealerCard2 + ' + Me.TxtDealerCard2.BackColor = System.Drawing.SystemColors.ButtonHighlight + Me.TxtDealerCard2.Font = New System.Drawing.Font("Microsoft Sans Serif", 36.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.TxtDealerCard2.Location = New System.Drawing.Point(135, 30) + Me.TxtDealerCard2.Multiline = True + Me.TxtDealerCard2.Name = "TxtDealerCard2" + Me.TxtDealerCard2.ReadOnly = True + Me.TxtDealerCard2.Size = New System.Drawing.Size(94, 125) + Me.TxtDealerCard2.TabIndex = 26 + Me.TxtDealerCard2.Visible = False + Me.TxtDealerCard2.WordWrap = False + ' + 'TxtDealerCard1 + ' + Me.TxtDealerCard1.BackColor = System.Drawing.SystemColors.ButtonHighlight + Me.TxtDealerCard1.Font = New System.Drawing.Font("Microsoft Sans Serif", 36.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.TxtDealerCard1.Location = New System.Drawing.Point(31, 30) + Me.TxtDealerCard1.Multiline = True + Me.TxtDealerCard1.Name = "TxtDealerCard1" + Me.TxtDealerCard1.ReadOnly = True + Me.TxtDealerCard1.Size = New System.Drawing.Size(94, 125) + Me.TxtDealerCard1.TabIndex = 25 + Me.TxtDealerCard1.Visible = False + Me.TxtDealerCard1.WordWrap = False + ' + 'LblDesc4 + ' + Me.LblDesc4.AutoSize = True + Me.LblDesc4.Location = New System.Drawing.Point(543, 521) + Me.LblDesc4.Name = "LblDesc4" + Me.LblDesc4.Size = New System.Drawing.Size(377, 13) + Me.LblDesc4.TabIndex = 30 + Me.LblDesc4.Text = "Please enter an even number. Otherwise your winnings may be rounded down." + ' + 'CmdRules + ' + Me.CmdRules.Location = New System.Drawing.Point(812, 460) + Me.CmdRules.Name = "CmdRules" + Me.CmdRules.Size = New System.Drawing.Size(68, 56) + Me.CmdRules.TabIndex = 31 + Me.CmdRules.Text = "Rules (Help)" + Me.CmdRules.UseVisualStyleBackColor = True + ' + 'Blackjack + ' + Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) + Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font + Me.BackColor = System.Drawing.Color.OliveDrab + Me.ClientSize = New System.Drawing.Size(918, 545) + Me.Controls.Add(Me.CmdRules) + Me.Controls.Add(Me.LblDesc4) + Me.Controls.Add(Me.TxtDealerCard5) + Me.Controls.Add(Me.TxtDealerCard4) + Me.Controls.Add(Me.TxtDealerCard3) + Me.Controls.Add(Me.TxtDealerCard2) + Me.Controls.Add(Me.TxtDealerCard1) + Me.Controls.Add(Me.TxtSplit5) + Me.Controls.Add(Me.TxtSplit4) + Me.Controls.Add(Me.TxtSplit3) + Me.Controls.Add(Me.TxtSplit2) + Me.Controls.Add(Me.TxtSplit1) + Me.Controls.Add(Me.LblDealer) + Me.Controls.Add(Me.LblDesc3) + Me.Controls.Add(Me.LblDesc2) + Me.Controls.Add(Me.LblDesc1) + Me.Controls.Add(Me.LblStatus) + Me.Controls.Add(Me.LblYou) + Me.Controls.Add(Me.TxtPlayerCard5) + Me.Controls.Add(Me.TxtPlayerCard4) + Me.Controls.Add(Me.TxtPlayerCard3) + Me.Controls.Add(Me.TxtPlayerCard2) + Me.Controls.Add(Me.TxtPlayerCard1) + Me.Controls.Add(Me.TxtBet) + Me.Controls.Add(Me.LblBet) + Me.Controls.Add(Me.LblTotal) + Me.Controls.Add(Me.TxtTotal) + Me.Controls.Add(Me.CmdStand) + Me.Controls.Add(Me.CmdDoubleDown) + Me.Controls.Add(Me.CmdSplit) + Me.Controls.Add(Me.CmdDeal) + Me.Controls.Add(Me.CmdHit) + Me.MaximizeBox = False + Me.MaximumSize = New System.Drawing.Size(934, 583) + Me.MinimumSize = New System.Drawing.Size(934, 583) + Me.Name = "Blackjack" + Me.Text = "Blackjack" + Me.ResumeLayout(False) + Me.PerformLayout() + + End Sub + Friend WithEvents CmdHit As System.Windows.Forms.Button + Friend WithEvents CmdDeal As System.Windows.Forms.Button + Friend WithEvents CmdSplit As System.Windows.Forms.Button + Friend WithEvents CmdDoubleDown As System.Windows.Forms.Button + Friend WithEvents CmdStand As System.Windows.Forms.Button + Friend WithEvents TxtTotal As System.Windows.Forms.TextBox + Friend WithEvents LblTotal As System.Windows.Forms.Label + Friend WithEvents LblBet As System.Windows.Forms.Label + Friend WithEvents TxtBet As System.Windows.Forms.TextBox + Friend WithEvents TxtPlayerCard1 As System.Windows.Forms.TextBox + Friend WithEvents TxtPlayerCard2 As System.Windows.Forms.TextBox + Friend WithEvents TxtPlayerCard3 As System.Windows.Forms.TextBox + Friend WithEvents TxtPlayerCard4 As System.Windows.Forms.TextBox + Friend WithEvents TxtPlayerCard5 As System.Windows.Forms.TextBox + Friend WithEvents LblYou As System.Windows.Forms.Label + Friend WithEvents LblStatus As System.Windows.Forms.Label + Friend WithEvents LblDesc1 As System.Windows.Forms.Label + Friend WithEvents LblDesc2 As System.Windows.Forms.Label + Friend WithEvents LblDesc3 As System.Windows.Forms.Label + Friend WithEvents LblDealer As System.Windows.Forms.Label + Friend WithEvents TxtSplit5 As System.Windows.Forms.TextBox + Friend WithEvents TxtSplit4 As System.Windows.Forms.TextBox + Friend WithEvents TxtSplit3 As System.Windows.Forms.TextBox + Friend WithEvents TxtSplit2 As System.Windows.Forms.TextBox + Friend WithEvents TxtSplit1 As System.Windows.Forms.TextBox + Friend WithEvents TxtDealerCard5 As System.Windows.Forms.TextBox + Friend WithEvents TxtDealerCard4 As System.Windows.Forms.TextBox + Friend WithEvents TxtDealerCard3 As System.Windows.Forms.TextBox + Friend WithEvents TxtDealerCard2 As System.Windows.Forms.TextBox + Friend WithEvents TxtDealerCard1 As System.Windows.Forms.TextBox + Friend WithEvents LblDesc4 As System.Windows.Forms.Label + Friend WithEvents CmdRules As System.Windows.Forms.Button + +End Class diff --git a/src/Blackjack/Blackjack.resx b/src/Blackjack/Blackjack.resx new file mode 100644 index 0000000..29dcb1b --- /dev/null +++ b/src/Blackjack/Blackjack.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/src/Blackjack/Blackjack.vb b/src/Blackjack/Blackjack.vb new file mode 100644 index 0000000..4d70bdd --- /dev/null +++ b/src/Blackjack/Blackjack.vb @@ -0,0 +1,576 @@ +'/********************************************************************************** +' * Blackjack * +' * Copyright 2013 Adrian Lam * +' * Last edited 22/11/2013 * +' * Version: beta * +' ********************************************************************************** +' * Blackjack is free software: you can redistribute it and/or modify * +' * it under the terms of the GNU General Public License as published by * +' * the Free Software Foundation; either version 3 of the License, or * +' * (at your option) any later version. * +' * * +' * This program is distributed in the hope that it will be useful, * +' * but WITHOUT ANY WARRANTY; without even the implied warrranty of * +' * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +' * GNU General Public License for more details. * +' * * +' * You should have received a copy of the GNU General Public License * +' * along with this program. If not, see * +' * * +' **********************************************************************************/ + +Public Class Blackjack + + Dim AllCards(52) As Boolean ' array to store whether each card has been dealt + ' 1-13 is Ace to King of spades, 14-26 is Ace to King of Hearts etc + + Dim PlayerCards(5) As Integer, PlayerCardCount As Integer, PlayerCardSum As Integer, PlayerCardSoftSum As Integer + + Dim DealerCards(5) As Integer, DealerCardCount As Integer, DealerCardSum As Integer, DealerCardSoftSum As Integer + + Dim PlayerSplitCards(5) As Integer, PlayerSplitCount As Integer, PlayerSplitSum As Integer, PlayerSplitSoftSum As Integer + + Dim SplitStatus As Integer '0 when no split, 1 when playing 1st hand split, 2 when playing 2nd hand + Dim Split1Busted As Boolean, Split2Busted As Boolean + + Private Sub Blackjack_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load + TxtBet.Focus() + CmdHit.Hide() + CmdStand.Hide() + CmdDoubleDown.Hide() + CmdSplit.Hide() + LblStatus.Text = "Enter bet amount and" & Chr(13) & Chr(10) & "click Deal to start" + Randomize() 'Seed pseudo-random number generator + End Sub + + Sub Initialise() + Dim i As Integer + LblStatus.Text = "" + CmdDeal.Hide() + CmdHit.Hide() + CmdStand.Hide() + CmdDoubleDown.Hide() + CmdSplit.Hide() + TxtBet.ReadOnly = True + For i = 1 To 52 Step 1 + AllCards(i) = False + Next + For i = 1 To 5 Step 1 + DealerCards(i) = 0 + PlayerSplitCards(i) = 0 + PlayerCards(i) = 0 + Next + PlayerCardCount = 0 + DealerCardCount = 0 + PlayerCardSum = 0 + PlayerCardSoftSum = 0 + DealerCardSum = 0 + DealerCardSoftSum = 0 + PlayerSplitCount = 0 + PlayerSplitSum = 0 + PlayerSplitSoftSum = 0 + SplitStatus = 0 + TxtPlayerCard1.Text = "" + TxtPlayerCard1.Visible = False + TxtPlayerCard2.Text = "" + TxtPlayerCard2.Visible = False + TxtPlayerCard3.Text = "" + TxtPlayerCard3.Visible = False + TxtPlayerCard4.Text = "" + TxtPlayerCard4.Visible = False + TxtPlayerCard5.Text = "" + TxtPlayerCard5.Visible = False + TxtSplit1.Text = "" + TxtSplit1.Visible = False + TxtSplit2.Text = "" + TxtSplit2.Visible = False + TxtSplit3.Text = "" + TxtSplit3.Visible = False + TxtSplit4.Text = "" + TxtSplit4.Visible = False + TxtSplit5.Text = "" + TxtSplit5.Visible = False + TxtDealerCard1.Text = "" + TxtDealerCard1.Visible = False + TxtDealerCard2.Text = "" + TxtDealerCard2.Visible = False + TxtDealerCard3.Text = "" + TxtDealerCard3.Visible = False + TxtDealerCard4.Text = "" + TxtDealerCard4.Visible = False + TxtDealerCard5.Text = "" + TxtDealerCard5.Visible = False + Split1Busted = False + Split2Busted = False + End Sub + + Private Sub CmdDeal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdDeal.Click + + '''''BEGIN VALIDATION''''' + If Val(TxtTotal.Text) <= 0 Then + MsgBox("You have no more money! Click OK to exit program...") + Me.Close() + End If + If TxtBet.Text = "" Or Not IsNumeric(TxtBet.Text) Or Int(Val(TxtBet.Text)) <= 0 Then + MsgBox("Please enter a valid bet value") + Return + End If + TxtBet.Text = CStr(Int(Val(TxtBet.Text))) + If Val(TxtBet.Text) > Val(TxtTotal.Text) Then + MsgBox("You don't have enough money for such a high bet! Please lower your bet value") + Return + End If + '''''END VALIDATION''''' + + Initialise() + TxtTotal.Text = CStr(Val(TxtTotal.Text) - Val(TxtBet.Text)) + + '/**********************************************************************/ + + DealToPlayer() + DealToPlayer() + 'BEGIN Deal hole card to dealer + DealOneCard(DealerCards, DealerCardCount, DealerCardSum, DealerCardSoftSum) + TxtDealerCard1.BackColor = Color.Gray + TxtDealerCard1.Visible = True + 'END Deal hole card to dealer + DealToDealer() + + '/**************************************************************************/ + + '''''BEGIN INSURANCE''''' + If DealerCards(2) Mod 13 = 1 And Val(TxtTotal.Text) >= Int((Val(TxtBet.Text) + 1) / 2) Then ' If dealer's up card is Ace AND player has enough money Then + Dim OptionIns As Integer '6=yes, 7=no + OptionIns = MsgBox("Dealer may have blackjack, do you want insurance?", MsgBoxStyle.YesNo Or MsgBoxStyle.DefaultButton1 Or MsgBoxStyle.Exclamation) + If OptionIns = 6 And DealerCardSum = 21 Then + If PlayerCardSum = 21 Then + LblStatus.Text = "Dealer and you both have blackjack, push" + TxtTotal.Text = CStr(Int(Val(TxtBet.Text) * 5 / 2) + Val(TxtTotal.Text)) + Else + LblStatus.Text = "Dealer has blackjack" + TxtTotal.Text = CStr(Val(TxtTotal.Text) + Val(TxtBet.Text)) + End If + DisplayCard(TxtDealerCard1, DealerCards(1)) + EnableDeal() + Return + ElseIf OptionIns = 6 And DealerCardSum <> 21 Then + LblStatus.Text = "Dealer does not have blackjack" + TxtTotal.Text = CStr(Val(TxtTotal.Text) - Int((Val(TxtBet.Text) + 1) / 2)) + ElseIf OptionIns = 7 And DealerCardSum = 21 Then + LblStatus.Text = "Dealer has blackjack" + DisplayCard(TxtDealerCard1, DealerCards(1)) + EnableDeal() + Return + End If + End If + '''''END INSURANCE''''' + + '''''BEGIN IF DEALER HAS BLACKJACK''''' + If DealerCardSum = 21 Then + If PlayerCardSum = 21 Then + LblStatus.Text = "Dealer and you both have blackjack, push" + TxtTotal.Text = CStr(Val(TxtTotal.Text) + Val(TxtBet.Text)) + Else + LblStatus.Text = "Dealer has blackjack" + End If + DisplayCard(TxtDealerCard1, DealerCards(1)) + EnableDeal() + Return + End If + '''''END IF DEALER HAS BLACKJACK''''' + + '''''BEGIN IF PLAYER HAS BLACKJACK''''' + If PlayerCardSum = 21 Then + LblStatus.Text = "You have blackjack!" + TxtTotal.Text = CStr(Val(TxtTotal.Text) + Int(Val(TxtBet.Text) * 5 / 2)) + EnableDeal() + Return + End If + '''''END IF PLAYER HAS BLACKJACK''''' + + '/**************************************************************************/ + + CmdStand.Show() + CmdHit.Show() + CmdDoubleDown.Show() + If PlayerCards(1) Mod 13 = PlayerCards(2) Mod 13 Then ' If both cards equal Then + CmdSplit.Show() + End If + End Sub + + Function RandBetween(ByVal lower As Integer, ByVal higher As Integer) ' Returns a random integer between lower and higher inclusive + Return Int((higher - lower + 1) * Rnd() + lower) + End Function + + Sub DisplayCard(ByRef card As TextBox, ByVal CardValue As Integer) + Dim face As String, suit As String = "" ' Initialised to stop the complaint of Visual Studio, syntactically and logically not required + + card.BackColor = Color.White ' Set the color of the textbox to white + If CardValue <> 0 Then + Select Case (Int((CardValue - 1) / 13)) + Case 0 + suit = "♠" + card.ForeColor = Color.Black ' Set the font color to black + Case 1 + suit = "♥" + card.ForeColor = Color.Red + Case 2 + suit = "♣" + card.ForeColor = Color.Black + Case 3 + suit = "♦" + card.ForeColor = Color.Red + End Select + Select Case (CardValue Mod 13) + Case 0 + face = "K" + Case 11 + face = "J" + Case 12 + face = "Q" + Case 1 + face = "A" + Case Else + face = CStr(CardValue Mod 13) + End Select + card.Text = suit & Chr(13) & Chr(10) & face + card.Visible = True + End If + End Sub + + Sub DealOneCard(ByRef PersonCards() As Integer, ByRef PersonCardCount As Integer, ByRef PersonCardSum As Integer, ByRef PersonCardSoftSum As Integer) + Dim card As Integer + + Do ' Ensure that no cards are repeated + card = RandBetween(1, 52) + Loop Until Not AllCards(card) + AllCards(card) = True + + PersonCardCount = PersonCardCount + 1 + PersonCards(PersonCardCount) = card + PersonCardSum = PersonCardSum + (card Mod 13) + ' Now this does not work if the card is A, J, Q or K, so the exceptions are handled below: + + If PersonCardSoftSum <> 0 Then ' If person has an ace Then + PersonCardSoftSum = PersonCardSoftSum + (card Mod 13) + End If + + Select Case (card Mod 13) + Case 0 ' is King + PersonCardSum = PersonCardSum + 10 + If PersonCardSoftSum <> 0 Then ' If person has an ace Then + PersonCardSoftSum = PersonCardSoftSum + 10 + End If + Case 11 ' is Jack + PersonCardSum = PersonCardSum - 1 + If PersonCardSoftSum <> 0 Then + PersonCardSoftSum = PersonCardSoftSum - 1 + End If + Case 12 ' is Queen + PersonCardSum = PersonCardSum - 2 + If PersonCardSoftSum <> 0 Then + PersonCardSoftSum = PersonCardSoftSum - 2 + End If + Case 1 ' is Ace + PersonCardSum = PersonCardSum + 10 + If PersonCardSoftSum = 0 Then ' If person does not already have an ace Then + PersonCardSoftSum = PersonCardSum - 10 + Else ' Person already has an ace + PersonCardSum = PersonCardSum - 10 + End If + End Select + End Sub + + Sub DealToPlayer() + DealOneCard(PlayerCards, PlayerCardCount, PlayerCardSum, PlayerCardSoftSum) + DisplayCard(TxtPlayerCard1, PlayerCards(1)) + DisplayCard(TxtPlayerCard2, PlayerCards(2)) + DisplayCard(TxtPlayerCard3, PlayerCards(3)) + DisplayCard(TxtPlayerCard4, PlayerCards(4)) + DisplayCard(TxtPlayerCard5, PlayerCards(5)) + End Sub + + Sub DealToDealer() + DealOneCard(DealerCards, DealerCardCount, DealerCardSum, DealerCardSoftSum) + ''card 1 skipped because it is hole card + DisplayCard(TxtDealerCard2, DealerCards(2)) + DisplayCard(TxtDealerCard3, DealerCards(3)) + DisplayCard(TxtDealerCard4, DealerCards(4)) + DisplayCard(TxtDealerCard5, DealerCards(5)) + End Sub + + Private Sub CmdHit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdHit.Click + CmdDoubleDown.Hide() + + If SplitStatus = 0 Then ' If player did not split Then + DealToPlayer() + If PlayerCardSoftSum > 21 Or (PlayerCardSum > 21 And PlayerCardSoftSum = 0) Then + LblStatus.Text = "You busted" + EnableDeal() + Return + ElseIf PlayerCardCount = 5 Then + LblStatus.Text = "You win" + TxtTotal.Text = CStr(Val(TxtTotal.Text) + 2 * Val(TxtBet.Text)) + EnableDeal() + Return + ElseIf PlayerCardSum = 21 Or PlayerCardSoftSum = 21 Then ' Automatically stands if player reaches 21 + CmdStand.PerformClick() + End If + + ElseIf SplitStatus = 1 Then ' ElseIf player splitted and is playing the first hand Then + DealToPlayer() + If PlayerCardSoftSum > 21 Or (PlayerCardSum > 21 And PlayerCardSoftSum = 0) Then + LblStatus.Text = "First hand busted" & Chr(13) & Chr(10) & "Second hand (top)" + Split1Busted = True + CmdHit.Show() + CmdStand.Show() + SplitStatus = 2 ' Starts player on second hand + ElseIf PlayerCardCount = 5 Then + LblStatus.Text = "First hand win" & Chr(13) & Chr(10) & "Second hand (top)" + SplitStatus = 2 ' Starts player on second hand + ElseIf PlayerCardSum = 21 Or PlayerCardSoftSum = 21 Then ' Automatically stands if player reaches 21 + CmdStand.PerformClick() + End If + + Else ' ElseIf player splitted and is playing the second hand Then + DealToSplit() + If PlayerSplitSoftSum > 21 Or (PlayerSplitSum > 21 And PlayerSplitSoftSum = 0) Then + LblStatus.Text = "Second hand busted" + Split2Busted = True + EndSplitHands() + ElseIf PlayerSplitCount = 5 Then + LblStatus.Text = LblStatus.Text & "Second hand win" & Chr(13) & Chr(10) + EndSplitHands() + ElseIf PlayerSplitSoftSum = 21 Or PlayerSplitSum = 21 Then ' Automatically stands if player reaches 21 + CmdStand.PerformClick() + End If + End If + End Sub + + Sub DealToSplit() + DealOneCard(PlayerSplitCards, PlayerSplitCount, PlayerSplitSum, PlayerSplitSoftSum) + DisplayCard(TxtSplit1, PlayerSplitCards(1)) + DisplayCard(TxtSplit2, PlayerSplitCards(2)) + DisplayCard(TxtSplit3, PlayerSplitCards(3)) + DisplayCard(TxtSplit4, PlayerSplitCards(4)) + DisplayCard(TxtSplit5, PlayerSplitCards(5)) + End Sub + + Sub ScoreCalc(ByRef score As Integer, ByVal softsum As Integer, ByVal sum As Integer) + If softsum > 21 Or (sum > 21 And softsum = 0) Then ' If busted Then + score = 0 + ElseIf sum > 21 And softsum <> 0 Then ' ElseIf sum busted but player has an ace and softsum not busted Then + score = softsum + Else + score = sum + End If + End Sub + + Sub EndSplitHands() + + If Split1Busted And Split2Busted Then + EnableDeal() + Return + End If + + DealerAlgo() + + '/***********************************************************/ + + Dim score1 As Integer, score2 As Integer, dealerscore As Integer + + ScoreCalc(score1, PlayerCardSoftSum, PlayerCardSum) + ScoreCalc(score2, PlayerSplitSoftSum, PlayerSplitSum) + ScoreCalc(dealerscore, DealerCardSoftSum, DealerCardSum) + + If score1 = 0 Then + LblStatus.Text = "First hand busted" & Chr(13) & Chr(10) + ElseIf score1 > dealerscore Or (score1 <> 0 And PlayerCardCount = 5) Then + LblStatus.Text = "First hand win" & Chr(13) & Chr(10) + TxtTotal.Text = CStr(Val(TxtTotal.Text) + 2 * Val(TxtBet.Text)) + ElseIf score1 = dealerscore Then + LblStatus.Text = "First hand push" & Chr(13) & Chr(10) + TxtTotal.Text = CStr(Val(TxtTotal.Text) + Val(TxtBet.Text)) + Else + LblStatus.Text = "First hand lose" & Chr(13) & Chr(10) + End If + + If score2 = 0 Then + LblStatus.Text = LblStatus.Text & "Second hand busted" & Chr(13) & Chr(10) + ElseIf score2 > dealerscore Or (score2 <> 0 And PlayerSplitCount = 5) Then + LblStatus.Text = LblStatus.Text & "Second hand win" & Chr(13) & Chr(10) + TxtTotal.Text = CStr(Val(TxtTotal.Text) + 2 * Val(TxtBet.Text)) + ElseIf score2 = dealerscore Then + LblStatus.Text = LblStatus.Text & "Second hand push" & Chr(13) & Chr(10) + TxtTotal.Text = CStr(Val(TxtTotal.Text) + Val(TxtBet.Text)) + Else + LblStatus.Text = LblStatus.Text & "Second hand lose" & Chr(13) & Chr(10) + End If + + If dealerscore = 0 Then + LblStatus.Text = LblStatus.Text & "Dealer Busted" & Chr(13) & Chr(10) + End If + + '/*********************************************************/ + + EnableDeal() + End Sub + + Sub DealerAlgo() + DisplayCard(TxtDealerCard1, DealerCards(1)) ' Show the hole card + While ((DealerCardSum < 17 And DealerCardSoftSum = 0) Or (DealerCardSoftSum < 17 And DealerCardSoftSum <> 0)) And DealerCardCount < 5 'While dealer has not reached 17 + DealToDealer() + End While + End Sub + + Sub EnableDeal() + CmdDeal.Show() + TxtBet.ReadOnly = False + CmdHit.Hide() + CmdStand.Hide() + CmdDoubleDown.Hide() + CmdSplit.Hide() + End Sub + + Private Sub CmdStand_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdStand.Click + If SplitStatus = 1 Then ' If player splitted and is playing first hand Then + SplitStatus = 2 ' Starts player on second hand + CmdHit.Show() + CmdStand.Show() + CmdDoubleDown.Hide() + LblStatus.Text = "Second hand (top)" + + ElseIf SplitStatus = 2 Then ' ElseIf player splitted and is playing second hand Then + EndSplitHands() + + Else ' player did not split + DealerAlgo() + + '/*************************************************************************/ + + Dim PlayerScore As Integer = 0, DealerScore As Integer = 0 + If DealerCardSum > 21 And (DealerCardSoftSum > 21 Or DealerCardSoftSum = 0) Then + LblStatus.Text = "Dealer busted" + TxtTotal.Text = CStr(Val(TxtTotal.Text) + 2 * Val(TxtBet.Text)) + EnableDeal() + Return + ElseIf DealerCardSum > 21 And DealerCardSoftSum <> 0 Then + DealerScore = DealerCardSoftSum + Else + DealerScore = DealerCardSum + End If + + If PlayerCardSum > 21 Then PlayerScore = PlayerCardSoftSum Else PlayerScore = PlayerCardSum + + If PlayerScore > DealerScore Then + LblStatus.Text = "You win" + TxtTotal.Text = CStr(Val(TxtTotal.Text) + 2 * Val(TxtBet.Text)) + EnableDeal() + ElseIf PlayerScore = DealerScore Then + LblStatus.Text = "Push" + TxtTotal.Text = CStr(Val(TxtTotal.Text) + Val(TxtBet.Text)) + EnableDeal() + Else + LblStatus.Text = "You lose" + EnableDeal() + End If + + '/*************************************************************************/ + + End If + End Sub + + Private Sub CmdDoubleDown_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdDoubleDown.Click + CmdDoubleDown.Hide() + + + Dim SecondBet As String + SecondBet = InputBox("Enter second bet value:") + While Val(SecondBet) > Val(TxtBet.Text) Or Val(SecondBet) > Val(TxtTotal.Text) Or SecondBet = "" Or Not IsNumeric(SecondBet) Or Int(Val(SecondBet)) <= 0 + If Val(SecondBet) > Val(TxtBet.Text) Or Val(SecondBet) > Val(TxtTotal.Text) Then + SecondBet = InputBox("Second bet too large, please enter another value:") + Else + SecondBet = InputBox("Please enter a correct numerical positive integral value:") + End If + End While + TxtTotal.Text = CStr(Val(TxtTotal.Text) - Val(SecondBet)) + + + DealToPlayer() + + If PlayerCardSoftSum > 21 Or (PlayerCardSum > 21 And PlayerCardSoftSum = 0) Then + LblStatus.Text = "You busted" + EnableDeal() + Return + End If + + DealerAlgo() + + '/*******************************************************************************/ + + Dim PlayerScore As Integer = 0, DealerScore As Integer = 0 + If DealerCardSum > 21 And (DealerCardSoftSum > 21 Or DealerCardSoftSum = 0) Then + LblStatus.Text = "Dealer busted" + TxtTotal.Text = CStr(Val(TxtTotal.Text) + 2 * Val(TxtBet.Text) + 2 * Val(SecondBet)) + EnableDeal() + Return + ElseIf DealerCardSum > 21 And DealerCardSoftSum <> 0 Then + DealerScore = DealerCardSoftSum + Else + DealerScore = DealerCardSum + End If + + If PlayerCardSum > 21 Then PlayerScore = PlayerCardSoftSum Else PlayerScore = PlayerCardSum + + If PlayerScore > DealerScore Then + LblStatus.Text = "You win" + TxtTotal.Text = CStr(Val(TxtTotal.Text) + 2 * Val(TxtBet.Text) + 2 * Val(SecondBet)) + EnableDeal() + ElseIf PlayerScore = DealerScore Then + LblStatus.Text = "Push" + TxtTotal.Text = CStr(Val(TxtTotal.Text) + Val(TxtBet.Text) + Val(SecondBet)) + EnableDeal() + Else + LblStatus.Text = "You lose" + EnableDeal() + End If + + '/********************************************************************************/ + + End Sub + + Private Sub CmdSplit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdSplit.Click + CmdSplit.Hide() + TxtSplit1.Text = TxtPlayerCard2.Text + TxtSplit1.Visible = True + TxtPlayerCard2.Text = "" + TxtPlayerCard2.Visible = False + + LblStatus.Text = "first hand (bottom)" + SplitStatus = 1 ' Starts the player on split on first hand + + '''''BEGIN set counters''''' + PlayerCardSum = PlayerCardSum / 2 + PlayerCardSoftSum = PlayerCardSoftSum / 2 + PlayerSplitSum = PlayerCardSum + PlayerSplitSoftSum = PlayerCardSoftSum + PlayerCardCount = 1 + PlayerSplitCount = 1 + PlayerSplitCards(1) = PlayerCards(2) + PlayerCards(2) = 0 + '''''END set counters''''' + + DealToPlayer() + DealToSplit() + CmdStand.Show() + CmdHit.Show() + CmdDoubleDown.Hide() + End Sub + + Private Sub CmdRules_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdRules.Click + '''''Open a new form with the rules on it''''' + Dim rules As New Rules ' Declare the new form + rules.Show() ' Show the new form + End Sub + +End Class diff --git a/src/Blackjack/Blackjack.vbproj b/src/Blackjack/Blackjack.vbproj new file mode 100644 index 0000000..932134e --- /dev/null +++ b/src/Blackjack/Blackjack.vbproj @@ -0,0 +1,139 @@ + + + + Debug + x86 + + + 2.0 + {C10E3BCC-91CC-4358-A93A-74E2895D064E} + WinExe + Blackjack.My.MyApplication + Blackjack + Blackjack + 512 + WindowsForms + v2.0 + + + + + x86 + true + full + true + true + bin\Debug\ + Blackjack.xml + 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 + + + x86 + pdbonly + false + true + true + bin\Release\ + Blackjack.xml + 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 + + + On + + + Binary + + + Off + + + On + + + + + + + + + + + + + + + + + + + + + + + + + + + Form + + + Blackjack.vb + Form + + + + True + Application.myapp + + + True + True + Resources.resx + + + True + Settings.settings + True + + + Rules.vb + + + Form + + + + + Blackjack.vb + + + VbMyResourcesResXFileCodeGenerator + Resources.Designer.vb + My.Resources + Designer + + + Rules.vb + + + + + + MyApplicationCodeGenerator + Application.Designer.vb + + + SettingsSingleFileGenerator + My + Settings.Designer.vb + + + + + \ No newline at end of file diff --git a/src/Blackjack/Blackjack.vbproj.user b/src/Blackjack/Blackjack.vbproj.user new file mode 100644 index 0000000..695b5c7 --- /dev/null +++ b/src/Blackjack/Blackjack.vbproj.user @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/src/Blackjack/My Project/Application.Designer.vb b/src/Blackjack/My Project/Application.Designer.vb new file mode 100644 index 0000000..427a6e2 --- /dev/null +++ b/src/Blackjack/My Project/Application.Designer.vb @@ -0,0 +1,38 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.296 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + + +Namespace My + + 'NOTE: This file is auto-generated; do not modify it directly. To make changes, + ' or if you encounter build errors in this file, go to the Project Designer + ' (go to Project Properties or double-click the My Project node in + ' Solution Explorer), and make changes on the Application tab. + ' + Partial Friend Class MyApplication + + _ + Public Sub New() + MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows) + Me.IsSingleInstance = false + Me.EnableVisualStyles = true + Me.SaveMySettingsOnExit = true + Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses + End Sub + + _ + Protected Overrides Sub OnCreateMainForm() + Me.MainForm = Global.Blackjack.Blackjack + End Sub + End Class +End Namespace diff --git a/src/Blackjack/My Project/Application.myapp b/src/Blackjack/My Project/Application.myapp new file mode 100644 index 0000000..fdf482c --- /dev/null +++ b/src/Blackjack/My Project/Application.myapp @@ -0,0 +1,10 @@ + + + true + Blackjack + false + 0 + true + 0 + true + \ No newline at end of file diff --git a/src/Blackjack/My Project/AssemblyInfo.vb b/src/Blackjack/My Project/AssemblyInfo.vb new file mode 100644 index 0000000..7753825 --- /dev/null +++ b/src/Blackjack/My Project/AssemblyInfo.vb @@ -0,0 +1,35 @@ +Imports System +Imports System.Reflection +Imports System.Runtime.InteropServices + +' General Information about an assembly is controlled through the following +' set of attributes. Change these attribute values to modify the information +' associated with an assembly. + +' Review the values of the assembly attributes + + + + + + + + + + +'The following GUID is for the ID of the typelib if this project is exposed to COM + + +' Version information for an assembly consists of the following four values: +' +' Major Version +' Minor Version +' Build Number +' Revision +' +' You can specify all the values or you can default the Build and Revision Numbers +' by using the '*' as shown below: +' + + + diff --git a/src/Blackjack/My Project/Resources.Designer.vb b/src/Blackjack/My Project/Resources.Designer.vb new file mode 100644 index 0000000..ea2777a --- /dev/null +++ b/src/Blackjack/My Project/Resources.Designer.vb @@ -0,0 +1,63 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.296 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + +Imports System + +Namespace My.Resources + + 'This class was auto-generated by the StronglyTypedResourceBuilder + 'class via a tool like ResGen or Visual Studio. + 'To add or remove a member, edit your .ResX file then rerun ResGen + 'with the /str option, or rebuild your VS project. + ''' + ''' A strongly-typed resource class, for looking up localized strings, etc. + ''' + _ + Friend Module Resources + + Private resourceMan As Global.System.Resources.ResourceManager + + Private resourceCulture As Global.System.Globalization.CultureInfo + + ''' + ''' Returns the cached ResourceManager instance used by this class. + ''' + _ + Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager + Get + If Object.ReferenceEquals(resourceMan, Nothing) Then + Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Blackjack.Resources", GetType(Resources).Assembly) + resourceMan = temp + End If + Return resourceMan + End Get + End Property + + ''' + ''' Overrides the current thread's CurrentUICulture property for all + ''' resource lookups using this strongly typed resource class. + ''' + _ + Friend Property Culture() As Global.System.Globalization.CultureInfo + Get + Return resourceCulture + End Get + Set + resourceCulture = value + End Set + End Property + End Module +End Namespace diff --git a/src/Blackjack/My Project/Resources.resx b/src/Blackjack/My Project/Resources.resx new file mode 100644 index 0000000..ffecec8 --- /dev/null +++ b/src/Blackjack/My Project/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/src/Blackjack/My Project/Settings.Designer.vb b/src/Blackjack/My Project/Settings.Designer.vb new file mode 100644 index 0000000..d569055 --- /dev/null +++ b/src/Blackjack/My Project/Settings.Designer.vb @@ -0,0 +1,73 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.296 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + + +Namespace My + + _ + Partial Friend NotInheritable Class MySettings + Inherits Global.System.Configuration.ApplicationSettingsBase + + Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings) + +#Region "My.Settings Auto-Save Functionality" +#If _MyType = "WindowsForms" Then + Private Shared addedHandler As Boolean + + Private Shared addedHandlerLockObject As New Object + + _ + Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs) + If My.Application.SaveMySettingsOnExit Then + My.Settings.Save() + End If + End Sub +#End If +#End Region + + Public Shared ReadOnly Property [Default]() As MySettings + Get + +#If _MyType = "WindowsForms" Then + If Not addedHandler Then + SyncLock addedHandlerLockObject + If Not addedHandler Then + AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings + addedHandler = True + End If + End SyncLock + End If +#End If + Return defaultInstance + End Get + End Property + End Class +End Namespace + +Namespace My + + _ + Friend Module MySettingsProperty + + _ + Friend ReadOnly Property Settings() As Global.Blackjack.My.MySettings + Get + Return Global.Blackjack.My.MySettings.Default + End Get + End Property + End Module +End Namespace diff --git a/src/Blackjack/My Project/Settings.settings b/src/Blackjack/My Project/Settings.settings new file mode 100644 index 0000000..377f56d --- /dev/null +++ b/src/Blackjack/My Project/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/Blackjack/Rules.Designer.vb b/src/Blackjack/Rules.Designer.vb new file mode 100644 index 0000000..1caaf41 --- /dev/null +++ b/src/Blackjack/Rules.Designer.vb @@ -0,0 +1,55 @@ + _ +Partial Class Rules + Inherits System.Windows.Forms.Form + + 'Form overrides dispose to clean up the component list. + _ + Protected Overrides Sub Dispose(ByVal disposing As Boolean) + Try + If disposing AndAlso components IsNot Nothing Then + components.Dispose() + End If + Finally + MyBase.Dispose(disposing) + End Try + End Sub + + 'Required by the Windows Form Designer + Private components As System.ComponentModel.IContainer + + 'NOTE: The following procedure is required by the Windows Form Designer + 'It can be modified using the Windows Form Designer. + 'Do not modify it using the code editor. + _ + Private Sub InitializeComponent() + Me.TxtRules = New System.Windows.Forms.TextBox() + Me.SuspendLayout() + ' + 'TxtRules + ' + Me.TxtRules.BackColor = System.Drawing.SystemColors.Window + Me.TxtRules.Location = New System.Drawing.Point(12, 12) + Me.TxtRules.Multiline = True + Me.TxtRules.Name = "TxtRules" + Me.TxtRules.ReadOnly = True + Me.TxtRules.ScrollBars = System.Windows.Forms.ScrollBars.Both + Me.TxtRules.Size = New System.Drawing.Size(353, 367) + Me.TxtRules.TabIndex = 0 + ' + 'Rules + ' + Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) + Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font + Me.ClientSize = New System.Drawing.Size(377, 391) + Me.Controls.Add(Me.TxtRules) + Me.MaximizeBox = False + Me.MaximumSize = New System.Drawing.Size(393, 429) + Me.MinimumSize = New System.Drawing.Size(393, 429) + Me.Name = "Rules" + Me.Text = "Rules" + Me.ResumeLayout(False) + Me.PerformLayout() + + End Sub + Friend WithEvents TxtRules As System.Windows.Forms.TextBox +End Class diff --git a/src/Blackjack/Rules.resx b/src/Blackjack/Rules.resx new file mode 100644 index 0000000..29dcb1b --- /dev/null +++ b/src/Blackjack/Rules.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/src/Blackjack/Rules.vb b/src/Blackjack/Rules.vb new file mode 100644 index 0000000..a34cd6f --- /dev/null +++ b/src/Blackjack/Rules.vb @@ -0,0 +1,32 @@ +'/********************************************************************************** +' * Blackjack * +' * Copyright 2013 Adrian Lam * +' * Last edited 22/11/2013 * +' * Version: beta * +' ********************************************************************************** +' * This file is part of Blackjack * +' * * +' * Blackjack is free software: you can redistribute it and/or modify * +' * it under the terms of the GNU General Public License as published by * +' * the Free Software Foundation; either version 3 of the License, or * +' * (at your option) any later version. * +' * * +' * This program is distributed in the hope that it will be useful, * +' * but WITHOUT ANY WARRANTY; without even the implied warrranty of * +' * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +' * GNU General Public License for more details. * +' * * +' * You should have received a copy of the GNU General Public License * +' * along with this program; if not, see * +' * * +' **********************************************************************************/ + +Public Class Rules + Private Sub Rules_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load + TxtRules.Text = "Rule number 1" & Chr(13) & Chr(10) & _ + "Rule number 2" & Chr(13) & Chr(10) & _ + "Lorem ipsum dolor sit amet" & Chr(13) & Chr(10) + + TxtRules.Select(0, 0) + End Sub +End Class \ No newline at end of file diff --git a/src/Blackjack/app.config b/src/Blackjack/app.config new file mode 100644 index 0000000..8d4e2b1 --- /dev/null +++ b/src/Blackjack/app.config @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Blackjack/bin/Debug/Blackjack.exe b/src/Blackjack/bin/Debug/Blackjack.exe new file mode 100644 index 0000000..0d21f34 Binary files /dev/null and b/src/Blackjack/bin/Debug/Blackjack.exe differ diff --git a/src/Blackjack/bin/Debug/Blackjack.exe.config b/src/Blackjack/bin/Debug/Blackjack.exe.config new file mode 100644 index 0000000..8d4e2b1 --- /dev/null +++ b/src/Blackjack/bin/Debug/Blackjack.exe.config @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Blackjack/bin/Debug/Blackjack.pdb b/src/Blackjack/bin/Debug/Blackjack.pdb new file mode 100644 index 0000000..983f2b8 Binary files /dev/null and b/src/Blackjack/bin/Debug/Blackjack.pdb differ diff --git a/src/Blackjack/bin/Debug/Blackjack.vshost.exe b/src/Blackjack/bin/Debug/Blackjack.vshost.exe new file mode 100644 index 0000000..58da521 Binary files /dev/null and b/src/Blackjack/bin/Debug/Blackjack.vshost.exe differ diff --git a/src/Blackjack/bin/Debug/Blackjack.vshost.exe.config b/src/Blackjack/bin/Debug/Blackjack.vshost.exe.config new file mode 100644 index 0000000..8d4e2b1 --- /dev/null +++ b/src/Blackjack/bin/Debug/Blackjack.vshost.exe.config @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Blackjack/bin/Debug/Blackjack.xml b/src/Blackjack/bin/Debug/Blackjack.xml new file mode 100644 index 0000000..6de1d0d --- /dev/null +++ b/src/Blackjack/bin/Debug/Blackjack.xml @@ -0,0 +1,24 @@ + + + + +Blackjack + + + + + + Returns the cached ResourceManager instance used by this class. + + + + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. + + + + A strongly-typed resource class, for looking up localized strings, etc. + + + + \ No newline at end of file diff --git a/src/Blackjack/bin/Release/Blackjack.exe b/src/Blackjack/bin/Release/Blackjack.exe new file mode 100644 index 0000000..dedf72b Binary files /dev/null and b/src/Blackjack/bin/Release/Blackjack.exe differ diff --git a/src/Blackjack/bin/Release/Blackjack.exe.config b/src/Blackjack/bin/Release/Blackjack.exe.config new file mode 100644 index 0000000..8d4e2b1 --- /dev/null +++ b/src/Blackjack/bin/Release/Blackjack.exe.config @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Blackjack/bin/Release/Blackjack.pdb b/src/Blackjack/bin/Release/Blackjack.pdb new file mode 100644 index 0000000..3a1ee9b Binary files /dev/null and b/src/Blackjack/bin/Release/Blackjack.pdb differ diff --git a/src/Blackjack/bin/Release/Blackjack.vshost.exe b/src/Blackjack/bin/Release/Blackjack.vshost.exe new file mode 100644 index 0000000..58da521 Binary files /dev/null and b/src/Blackjack/bin/Release/Blackjack.vshost.exe differ diff --git a/src/Blackjack/bin/Release/Blackjack.vshost.exe.config b/src/Blackjack/bin/Release/Blackjack.vshost.exe.config new file mode 100644 index 0000000..8d4e2b1 --- /dev/null +++ b/src/Blackjack/bin/Release/Blackjack.vshost.exe.config @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Blackjack/bin/Release/Blackjack.vshost.exe.manifest b/src/Blackjack/bin/Release/Blackjack.vshost.exe.manifest new file mode 100644 index 0000000..f96b1d6 --- /dev/null +++ b/src/Blackjack/bin/Release/Blackjack.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/Blackjack/bin/Release/Blackjack.xml b/src/Blackjack/bin/Release/Blackjack.xml new file mode 100644 index 0000000..6de1d0d --- /dev/null +++ b/src/Blackjack/bin/Release/Blackjack.xml @@ -0,0 +1,24 @@ + + + + +Blackjack + + + + + + Returns the cached ResourceManager instance used by this class. + + + + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. + + + + A strongly-typed resource class, for looking up localized strings, etc. + + + + \ No newline at end of file diff --git a/src/Blackjack/obj/x86/Debug/Blackjack.Blackjack.resources b/src/Blackjack/obj/x86/Debug/Blackjack.Blackjack.resources new file mode 100644 index 0000000..06c24d0 Binary files /dev/null and b/src/Blackjack/obj/x86/Debug/Blackjack.Blackjack.resources differ diff --git a/src/Blackjack/obj/x86/Debug/Blackjack.Resources.resources b/src/Blackjack/obj/x86/Debug/Blackjack.Resources.resources new file mode 100644 index 0000000..06c24d0 Binary files /dev/null and b/src/Blackjack/obj/x86/Debug/Blackjack.Resources.resources differ diff --git a/src/Blackjack/obj/x86/Debug/Blackjack.Rules.resources b/src/Blackjack/obj/x86/Debug/Blackjack.Rules.resources new file mode 100644 index 0000000..06c24d0 Binary files /dev/null and b/src/Blackjack/obj/x86/Debug/Blackjack.Rules.resources differ diff --git a/src/Blackjack/obj/x86/Debug/Blackjack.exe b/src/Blackjack/obj/x86/Debug/Blackjack.exe new file mode 100644 index 0000000..0d21f34 Binary files /dev/null and b/src/Blackjack/obj/x86/Debug/Blackjack.exe differ diff --git a/src/Blackjack/obj/x86/Debug/Blackjack.pdb b/src/Blackjack/obj/x86/Debug/Blackjack.pdb new file mode 100644 index 0000000..983f2b8 Binary files /dev/null and b/src/Blackjack/obj/x86/Debug/Blackjack.pdb differ diff --git a/src/Blackjack/obj/x86/Debug/Blackjack.vbproj.FileListAbsolute.txt b/src/Blackjack/obj/x86/Debug/Blackjack.vbproj.FileListAbsolute.txt new file mode 100644 index 0000000..bac7f4d --- /dev/null +++ b/src/Blackjack/obj/x86/Debug/Blackjack.vbproj.FileListAbsolute.txt @@ -0,0 +1,26 @@ +C:\Users\00alam\AppData\Local\Temporary Projects\Blackjack\bin\Debug\Blackjack.exe +C:\Users\00alam\AppData\Local\Temporary Projects\Blackjack\bin\Debug\Blackjack.pdb +C:\Users\00alam\AppData\Local\Temporary Projects\Blackjack\bin\Debug\Blackjack.xml +C:\Users\00alam\AppData\Local\Temporary Projects\Blackjack\obj\x86\Debug\ResolveAssemblyReference.cache +C:\Users\00alam\AppData\Local\Temporary Projects\Blackjack\obj\x86\Debug\Blackjack.Blackjack.resources +C:\Users\00alam\AppData\Local\Temporary Projects\Blackjack\obj\x86\Debug\Blackjack.Resources.resources +C:\Users\00alam\AppData\Local\Temporary Projects\Blackjack\obj\x86\Debug\GenerateResource.read.1.tlog +C:\Users\00alam\AppData\Local\Temporary Projects\Blackjack\obj\x86\Debug\GenerateResource.write.1.tlog +C:\Users\00alam\AppData\Local\Temporary Projects\Blackjack\obj\x86\Debug\Blackjack.exe +C:\Users\00alam\AppData\Local\Temporary Projects\Blackjack\obj\x86\Debug\Blackjack.xml +C:\Users\00alam\AppData\Local\Temporary Projects\Blackjack\obj\x86\Debug\Blackjack.pdb +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\bin\Debug\Blackjack.exe +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\bin\Debug\Blackjack.pdb +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\bin\Debug\Blackjack.xml +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Debug\Blackjack.Blackjack.resources +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Debug\Blackjack.Resources.resources +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Debug\Blackjack.Rules.resources +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Debug\Blackjack.exe +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Debug\Blackjack.xml +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Debug\Blackjack.pdb +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Debug\ResolveAssemblyReference.cache +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Debug\GenerateResource.read.1.tlog +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Debug\GenerateResource.write.1.tlog +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\bin\Debug\Blackjack.exe.config +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Debug\ResGen.read.1.tlog +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Debug\ResGen.write.1.tlog diff --git a/src/Blackjack/obj/x86/Debug/Blackjack.xml b/src/Blackjack/obj/x86/Debug/Blackjack.xml new file mode 100644 index 0000000..6de1d0d --- /dev/null +++ b/src/Blackjack/obj/x86/Debug/Blackjack.xml @@ -0,0 +1,24 @@ + + + + +Blackjack + + + + + + Returns the cached ResourceManager instance used by this class. + + + + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. + + + + A strongly-typed resource class, for looking up localized strings, etc. + + + + \ No newline at end of file diff --git a/src/Blackjack/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache b/src/Blackjack/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..4426310 Binary files /dev/null and b/src/Blackjack/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/src/Blackjack/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/src/Blackjack/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..4e38830 Binary files /dev/null and b/src/Blackjack/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/src/Blackjack/obj/x86/Debug/GenerateResource.read.1.tlog b/src/Blackjack/obj/x86/Debug/GenerateResource.read.1.tlog new file mode 100644 index 0000000..bd5896c Binary files /dev/null and b/src/Blackjack/obj/x86/Debug/GenerateResource.read.1.tlog differ diff --git a/src/Blackjack/obj/x86/Debug/GenerateResource.write.1.tlog b/src/Blackjack/obj/x86/Debug/GenerateResource.write.1.tlog new file mode 100644 index 0000000..535321b Binary files /dev/null and b/src/Blackjack/obj/x86/Debug/GenerateResource.write.1.tlog differ diff --git a/src/Blackjack/obj/x86/Debug/ResGen.read.1.tlog b/src/Blackjack/obj/x86/Debug/ResGen.read.1.tlog new file mode 100644 index 0000000..46b134b --- /dev/null +++ b/src/Blackjack/obj/x86/Debug/ResGen.read.1.tlog @@ -0,0 +1 @@ +ÿþ \ No newline at end of file diff --git a/src/Blackjack/obj/x86/Debug/ResGen.write.1.tlog b/src/Blackjack/obj/x86/Debug/ResGen.write.1.tlog new file mode 100644 index 0000000..46b134b --- /dev/null +++ b/src/Blackjack/obj/x86/Debug/ResGen.write.1.tlog @@ -0,0 +1 @@ +ÿþ \ No newline at end of file diff --git a/src/Blackjack/obj/x86/Debug/TempPE/My Project.Resources.Designer.vb.dll b/src/Blackjack/obj/x86/Debug/TempPE/My Project.Resources.Designer.vb.dll new file mode 100644 index 0000000..18c6894 Binary files /dev/null and b/src/Blackjack/obj/x86/Debug/TempPE/My Project.Resources.Designer.vb.dll differ diff --git a/src/Blackjack/obj/x86/Release/Blackjack.Blackjack.resources b/src/Blackjack/obj/x86/Release/Blackjack.Blackjack.resources new file mode 100644 index 0000000..06c24d0 Binary files /dev/null and b/src/Blackjack/obj/x86/Release/Blackjack.Blackjack.resources differ diff --git a/src/Blackjack/obj/x86/Release/Blackjack.Resources.resources b/src/Blackjack/obj/x86/Release/Blackjack.Resources.resources new file mode 100644 index 0000000..06c24d0 Binary files /dev/null and b/src/Blackjack/obj/x86/Release/Blackjack.Resources.resources differ diff --git a/src/Blackjack/obj/x86/Release/Blackjack.Rules.resources b/src/Blackjack/obj/x86/Release/Blackjack.Rules.resources new file mode 100644 index 0000000..06c24d0 Binary files /dev/null and b/src/Blackjack/obj/x86/Release/Blackjack.Rules.resources differ diff --git a/src/Blackjack/obj/x86/Release/Blackjack.exe b/src/Blackjack/obj/x86/Release/Blackjack.exe new file mode 100644 index 0000000..dedf72b Binary files /dev/null and b/src/Blackjack/obj/x86/Release/Blackjack.exe differ diff --git a/src/Blackjack/obj/x86/Release/Blackjack.pdb b/src/Blackjack/obj/x86/Release/Blackjack.pdb new file mode 100644 index 0000000..3a1ee9b Binary files /dev/null and b/src/Blackjack/obj/x86/Release/Blackjack.pdb differ diff --git a/src/Blackjack/obj/x86/Release/Blackjack.vbproj.FileListAbsolute.txt b/src/Blackjack/obj/x86/Release/Blackjack.vbproj.FileListAbsolute.txt new file mode 100644 index 0000000..d2b5344 --- /dev/null +++ b/src/Blackjack/obj/x86/Release/Blackjack.vbproj.FileListAbsolute.txt @@ -0,0 +1,15 @@ +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\bin\Release\Blackjack.exe +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\bin\Release\Blackjack.pdb +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\bin\Release\Blackjack.xml +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Release\Blackjack.Blackjack.resources +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Release\Blackjack.Resources.resources +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Release\Blackjack.Rules.resources +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Release\Blackjack.exe +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Release\Blackjack.xml +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Release\Blackjack.pdb +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Release\ResolveAssemblyReference.cache +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Release\GenerateResource.read.1.tlog +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Release\GenerateResource.write.1.tlog +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\bin\Release\Blackjack.exe.config +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Release\ResGen.read.1.tlog +\\student\users$\00alam\Visual Studio 2010\Projects\Blackjack\Blackjack\obj\x86\Release\ResGen.write.1.tlog diff --git a/src/Blackjack/obj/x86/Release/Blackjack.xml b/src/Blackjack/obj/x86/Release/Blackjack.xml new file mode 100644 index 0000000..6de1d0d --- /dev/null +++ b/src/Blackjack/obj/x86/Release/Blackjack.xml @@ -0,0 +1,24 @@ + + + + +Blackjack + + + + + + Returns the cached ResourceManager instance used by this class. + + + + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. + + + + A strongly-typed resource class, for looking up localized strings, etc. + + + + \ No newline at end of file diff --git a/src/Blackjack/obj/x86/Release/DesignTimeResolveAssemblyReferences.cache b/src/Blackjack/obj/x86/Release/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..f9f4281 Binary files /dev/null and b/src/Blackjack/obj/x86/Release/DesignTimeResolveAssemblyReferences.cache differ diff --git a/src/Blackjack/obj/x86/Release/DesignTimeResolveAssemblyReferencesInput.cache b/src/Blackjack/obj/x86/Release/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..8f8c3bf Binary files /dev/null and b/src/Blackjack/obj/x86/Release/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/src/Blackjack/obj/x86/Release/GenerateResource.read.1.tlog b/src/Blackjack/obj/x86/Release/GenerateResource.read.1.tlog new file mode 100644 index 0000000..bd5896c Binary files /dev/null and b/src/Blackjack/obj/x86/Release/GenerateResource.read.1.tlog differ diff --git a/src/Blackjack/obj/x86/Release/GenerateResource.write.1.tlog b/src/Blackjack/obj/x86/Release/GenerateResource.write.1.tlog new file mode 100644 index 0000000..535321b Binary files /dev/null and b/src/Blackjack/obj/x86/Release/GenerateResource.write.1.tlog differ diff --git a/src/Blackjack/obj/x86/Release/ResGen.read.1.tlog b/src/Blackjack/obj/x86/Release/ResGen.read.1.tlog new file mode 100644 index 0000000..46b134b --- /dev/null +++ b/src/Blackjack/obj/x86/Release/ResGen.read.1.tlog @@ -0,0 +1 @@ +ÿþ \ No newline at end of file diff --git a/src/Blackjack/obj/x86/Release/ResGen.write.1.tlog b/src/Blackjack/obj/x86/Release/ResGen.write.1.tlog new file mode 100644 index 0000000..46b134b --- /dev/null +++ b/src/Blackjack/obj/x86/Release/ResGen.write.1.tlog @@ -0,0 +1 @@ +ÿþ \ No newline at end of file diff --git a/src/Blackjack/obj/x86/Release/ResolveAssemblyReference.cache b/src/Blackjack/obj/x86/Release/ResolveAssemblyReference.cache new file mode 100644 index 0000000..2e30228 Binary files /dev/null and b/src/Blackjack/obj/x86/Release/ResolveAssemblyReference.cache differ diff --git a/src/Blackjack/obj/x86/Release/TempPE/My Project.Resources.Designer.vb.dll b/src/Blackjack/obj/x86/Release/TempPE/My Project.Resources.Designer.vb.dll new file mode 100644 index 0000000..ec855c0 Binary files /dev/null and b/src/Blackjack/obj/x86/Release/TempPE/My Project.Resources.Designer.vb.dll differ