IT204 - VB - Net:project - Simple Slot Machine
IT204 - VB - Net:project - Simple Slot Machine
2011
DIT PROJECT
Student Contact No. : 8743198 (Landline) Class Code Description Centre Code Country : IT204 : VB.NET : 0535 : Philippines
2011
P. 3 P. 4 P. 4 P. 5 P. 6 P. 7 PP. 8 - 11 PP. 12- 13 P. 14 P. 14 P. 15 P. 16 P. 17 P. 18 P. 19 P. 20 P. 21 P. 21 P. 21 -23 P. 24 -27 P. 28 -35 P. 36 P. 36 P. 37 P. 37 P. 38 P. 39 P.40 - 54 P. 55 P.56 - 57 P.58 P.59 - 60
2011
INTRODUCTION Slot Machines are a staple in every Casino youll come across to, they will be in different versions, design and composure. These mechanisms are usually colorful, bright and animated which, to think, is trying to exhibit an air of possible instantaneous fortune whilst you are amusing yourself with the game of luck. What will catch you by surprise is that it is possible that a slot machine or perhaps a whole Casino package can also exist in other places, like say, of recreation and technological whoopla such as an ordinary Computer Rental Shop, yeah,Thats right! You must think its nuts, but this is what this documentation will be about. A Computer Shop that is convertible to a Casino a kind that is much less complex that is, this my friends is what you call prospective innovation. We will be building a slot machine for a PC Shop called HIGH ENERGY for their Mini-Casino project. They are a PC Shop based within the bounds of BFRV Las-Pinas City. The shop wishes to offer a different kind of PC entertainment that has not yet been incorporated by their competitors in the line of business. That would be enough reason why Mr. Dominic Cabuyao, The HIGH ENERGY Shop Owner sought for assistance in making one of his principal machines for his Computerized Mini-Casino which we accepted to build, which is the SLOTS that will be named LUCKY SHOCKER!
2011
As this project slowly takes shape in accord with the development of the slot machine that we are designing for our patron ere, the HIGH ENERGY NET CAF, we are hoping that our desired program would live up to our patrons standard and preference when it comes to accountability, functionality, and reliability for the assumed users convenience.
Hence, the program in development here, the slot machine, which we deemed the LUCKY SHOCKER, is being crafted in utmost care and much attention to detail to ensure it will accurately run and function flawlessly with the help of the system application editor VB.NET in 2008 version for our project.
To emphasize, Our program is being molded to present a unique form of entertainment in the field of computer industry. This program is expected to fulfill the level of pleasure the clients that would long for this in HIGH ENERGY CAF in the dates to follow.
This Slotmachine program will be built to be competent and would be at ranks with all other machines of its kind, our program would be a though contender amongst the wide world of slot machines.
2011
1.2 Objectives
What this project should be able to accomplish by the end of this whole major major project is to complete the construction of the LUCKY SHOCKER Slot Machine, as we named it, for our asset in this spread the HIGH ENERGY Computer Shop that stands in the out-stretches of BF Resort Village, Las Pinas City. The Lucky Shocker Slot Machine should be developed with great precision in reliability and creativity for the people wholl be making good use of this type of Machine. Not Only do we wish to successfully deliver our slot machine, its the projects goal to familarize us with the wonders of VB.NET. To let you know, VB.NET is an object-oriented programming language which is quite ahead of the classic Visual Basic due to its extended .NET Framework-esque Features. This Project as a whole will make us be more aware and knowledgable of the workings of Visual Basic .NET. We will be exposed to its different facets. Also, we aim to make you happy through VB.NET when this documentation ENDS.
2011
Starting now, we shall accomplish a very liesurely yet reliable slot machine for HIGH ENERGY net caf this will pretty much like be just your ordinary PC Game in a computer shop only, it will be set apart due to its casino like impression and there would be actual prizes aswell.
This project is not intended to be arcade like however it will have a touch of class in it and will try to stimulate a live slot machine as if it were casino filipino kinda like.
To avoid unintended and unecessary usage of this program we will implement a security & authentication system to filter out the clients wholl be using this service later on when this carries out.
We are proffesionally crafting this out so as it would present that way as well but I hope that with enough experience and knowledge in VB.Net well be able to achieve that.
2011
ANALYSIS OF THE TERMS OF REFERENCE As of the early chapters that preceded it was mentioned, again and again that the purpose of this project is to stimulate the creation of a Slot Machine program using VB.NET. As much as there has been said, I assume by now that we have conceptualized that by now, yet there is something that needs to be added an evaluation of the task we are trying to attain. Again we are making a slot machine titled LUCKY SHOCKER for our patron HIGH ENERGY caf. We have accepted task because we simply took notice that our skills could accommodate the construction of that type of windows system application through the knowledge we adapted in VB.NET. This project in expanse will be sticking with the slot machine concept and elements such as coin slots to enable the start up of the game, bet placements, that handle to spin the reels of the slot machine, payouts, multipliers and stuff youll encounter later on. This will all be executed virtually. Our project concept shall be written in VB.net alone completely, including the layout and graphics of the game. It will be a video slot machine with all its controls on screen as well and will only be accessed by your computer input devices. As we are making this project we are also enhancing our skills in VB.Net during its development stage. Now Im holding my breath and hope that everything would turn out in the way we have planned.
2011
ANALYSIS OF THE REQUIREMENTS We have now generalized our plan for the project now let us observe the requirements necessary for materializing our work. The slot machine we are trying to build is not that flashy however, it doesnt come with solid and tangible materials like metal boards and paint for its construction. We are only trying to achieve a unique out of the ordinary type of slot machine which is extraspecial all because it is in the style of computer technology. So, there isnt really anything fancy that we will be needing to carry this out. All the tools that are really necessary for this project are actually just basic objects, devices or equipments you can actually commonly find at home Stunned you eh? No really!! Given the fact that you are being able to read this document I assume that you are already using one of the tools we need in this project which is the desktop computer. (if not you are reading the print out version which was produced using a printer, but having a printer is optional since there are lots of printing shops out there) Wow! ok, you can snap out of your surprised state now thats too much now, but anyway, we are not talking about just the average computer, we are talking about a desktop computer that would also need an advanced operating system to support our VB.NET object oriented-program which counts as our software requirement. It is suggested that the desktop computer that we would be using should have the latest operating system dating back to approximately the windows OS versions as early as year 2000 like say NT 4.0, Win 2000 Pro, win XP Home and Pro you get the picture. We now continue the analyzation of this requirements on the next page. FLIP!
2011
We mentioned the use of a desktop computer a while ago let me enlist you the specifics of our requirements. A desktop computer is not a singular tool instead it is comprised of devices that makes it whole. Look below for the account of our system requirements for this project. Hardware Requirements: 1.) Desktop Computer like this: Complete with a mouse and
keyboard or a appropriate input device that you have. Has a CPU with atleast a Pentium MHz or II-class higher. 600MHz
processor, (Pentium
450
III-class,
Operating System Windows NT 4.0 Workstation Windows NT 4.0 Server Windows 2000 Professional Windows 2000 Server Windows XP Professional Windows XP Home
2011
CPU With Available Hard Disk Space of: 600 MB on system drive, 1.5 GB installation drive
CD-ROM or DVD-ROM Drive: Required Video: 800 x 600, 256 colors (recommended: High Color 16-bit)
All those hardware requirements stated above are necessary for our software requirements. ALTERNATIVE Hard Ware Requirement: Laptop Computer (with the CPU features and capacity listed above aswell) OTHER Hardware Requirement: Internal or External Modem and accessories (for net connectivity) This will be necessary only if you wish to install VB.Net program in your desktop from the Internet.
2011
We have already recognized our Hardware requirements now we are coordinating it with our software requirements which will be specified in this page. Software Requirements: CD Installers for any of the Windows Operating Systems Listed below (this is only applicable if only if you have either an outdated Operating system version or you dont have any Operating System installed in your desktop) VB.NET Program CD Installer (versions Visual Studio 2005 or Higher recommended) or a downloaded installer for our program (you can search installers via Google search engine.) Non-Electronic Requirement: An education in using VisualBasic.NET you can attain this by taking Information Technology course or simply take a short course that offers this, or the simplest way to learn VB.NET is via web tutorials but this option has the potential to suspend you of information you can learn on real time.
Required Personal Skills: A passion for technical aspects, Creativity, Perseverance, Determination, Logic, Imaginative & innovative qualities. Open mind for learning new things.
2011
DISCUSSION OF EXISTING FACILITIES The program we are developing right now for this project is the slot machine, as we all commonly know for a fact that these kinds of contraptions usually exist in casinos or places where you are going to be consumed by the bliss of fun and ecstasy of fortune. Now, that is sooo common place and we all know what casinos are, if you dont then go check out a local casino hub, like PAGCOR or Casino Filipino, see if you are old enough however we can apply this machine in that place. We are reinventing that clichd notion in this project our slot machine will be applying itself in other places of entertainment, an ordinary PC rental shop in our sake, the HIGH ENERGY NET CAF, but they wont be so plain anymore when we have implemented our plans of integrating a casino in it in accord with the shop owners ambition. This slot machine we are making will pretty much serve and function much like other PC games they offer there with a different attitude. We can apply this program in a PC shop because WE CAN! Right? Nothing formal besides the shops owner just had this crazy idea to broaden more opportunities for blissful fun. Which Is quite sinister to think of mere profiteering eh? More and more people to be hooked in PC rental shops gasp we pray not ;) Other places we can implement this machine is in the arcade, this machine is flexible and it can be configured into something much innocent for kiddies it could just give out prizes in exchange of toys. More details for the facilities will be on the next page.
2011
Existing Facilities Where We can apply our SLOT MACHINE PROGRAM. Are disclosed in accord. Our program is in VB.NET format so our 1.] Casino Establishments. Like PAGCOR or Casino Filipino. - As long as their machines has the proper technical environment and means for running VB.Net programs we can integrate it to their slot machine systems there would be guides as to how they will operate this type of program format however which will take time. so its not advisable but with ample engineering and technicality I believe its possible. 2.] Computer Shops. Places where
desktop computers are a staple with the proper operating systems, like PC Rental Shops, our VB.NET slot machine
program will run perfectly without any serious problems. It will be next hot thing. This is the facility where we are placing our project at. 3.] Arcades you probably have been in these places they are usually based in malls. Slot machines can be added to these places with humble prizes of course nothing of gamble. Just innocent fun for all ages, but this idea needs more development like the casino. Generally, our program can run in pretty much any gadgetry or device that can read and run VB.NET Programs.
2011
SYSTEM DESIGN INCLUDING ALTERNATIVES Here, in this chapter, we are going to observe the designs that were able to generate for the time being. These designs are going to be dissected into Logical areas and related elements that would be revolving in our slot machine concept. To begin the discourse of this area, we shall start by illustrating our pseudo-code through flow charting our program. 6.1 LOGICAL SLOTMACHINE Program Flowchart Design START
EXIT BUTTON PRESSED
Exit or Scoring System Button? SCORING SYTEM BUTTON PRESSED
SPINBUTTON PRESSED
Items in the Slot Machine Randomly rolls in the Reels. SCORING SYTEM BUTTON PRESSED STOP BUTTON PRESSED What Button hit? EXIT BUTTON PRESSED
STOP
2011
The design that is being evolved out of the program designers (Carmz) ideas and novice knowledge is a slot machine game through vb.net publishing, this system is being counted on to parallel with other slot machines but we are improvising on a much simpler but graphically competitive one since we are noob vb.net programmers testing our capability through taking the challenge of our patron, which is HIGH ENERGY NET CAF, in building a systematic slot machine.
At this stage, however, the slot machines development is at 80-20 in progress there are still bugs preventing the current system being developed as of now that is the problem being encountered here.
Necessary measures such as debugging and compiling our work would make a big assistance in fixing the problems that exists in the current system. Other than these, there are no known difficulties.
The current system has a good and reasonable design which is achievable and there is a sure and steady feeling that this will eventually work well when the current problem is addressed precisely.
2011
6.3 System Architecture The scheme for our slot machine design is outlined in this manner:
PicHeading Simply a Graphic design to TITLE our Program this is in JPG format SCORING SYSTEM
SCORE:
txtScoreCounter
btnSPIN
btnSTOP
btnEXIT
Panel1
Label3
As you can see the design is very basic but has every crucial element you can find in a Standard Slot Machine Game. It follows a 3-Reel Roulette System which then serves as the pattern for getting our winning combination for the game. The key is to have 3 Identical Reels for players to WIN. To keep track of the Balance earned by the player we have established a Score Counter on top of the Reels this will track how many points the player has already acquired. There is the Scoring System Button to Show how valuable is the score being kept by the player & how rewarding it is.
2011
6.3.1 DESIGN: The actual design looks like this: (Conventions included)
picHeading
lblReel1
lblReel2
lblReel3
SPIN:
SCORING SYSTEM:
STOP:
2011
2011
Private Sub btnQUIT_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnQUIT.Click End End Sub Private Sub btnCoin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCoin.Click token = Val(txtCoin.Text) + 1 txtCoin.Text = token If txtCoin.Text >= 1 And txtCoin.Text >= 1 Then btnSPIN.Enabled = True btnSTOP.Enabled = True End If End Sub Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnYes.Click MsgBox("Please INSERT A COIN again!", MsgBoxStyle.OkOnly) Panel1.Visible = False End Sub Private Sub btnNO_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNO.Click Application.Exit() End Sub End Class
2011
6.5 Alternative System Design Before we took the concept of making a Slot Machine Program for HIGH ENERGY NET CAF, we had options of other games other than the slot machine, our patron gave us the choice of making a Black Jack, Yahtzee or Poker for them but we instead accepted the idea of the Slot Machine for we were familiar of the game and it is not that lengthy to encrypt as believed.
We didnt accept card game concepts from HIGH ENERGY net caf and passed it on to other programmers who could probably manage these kinds of concept.
Picking
the
slot
machine
concept
lessened
our
chances
of
disappointing our patron when it comes to expectations and assured us that this concept is applicable and we can envision its makings because the program designer herself once hit the slots before, so it will be easy for her to come up with plans and ideas for this program.
As a result Card Games were once considered and alternative for our design but rejected due to their complexity and of our very scant knowledge of the game types. However if this program were to fail we considered going for the Yahtzee game concept.
2011
IMPLEMENTATION OVERVIEW 7.1 Overview The following factors are critical in implementing our Slot Machine Program may it be commercial, residential or wherever applicable: Defining the Core Objectives and Measures for Success. Assigning the right Champion or Stakeholder.
Proper Negotiations for Rights and Terms for the personalization of the Offered Program. Thorough preparation for the implementation (IT and Operational) Managing and improving processes using the data collected
In general the success of our offered program relies in functionality and its accuracy of construction. No less, this program shall be well deemed basing on its performance.
With proper encryption of the program, usage of the defined methods and standards are going to be the essence of this program projects accomplishment and glory. Necessary Implementation plan shall enable the assurance of this projects over all success this method would bring the purpose of monitoring our program as well.
2011
7.2 Implementation Process The process for implementation shall be concisely subjected into the array of criteria to follow before we proceed with planning our project: 7.2.1 Operational Process Review An evaluation of the Slot Machine program elements exposes its goals in being efficient in performance. The VB.net solution should match the expectation where it could deliver quality game play to soon-to-be users. To secure the program would run as desired we incorporated codes in VB.Net that we are only familiar with for the time being, we sticked to the coding schemes in VB. that we only have knowledge with without experimenting on other techniques yet since we admit that we are still budding programmers, and we shall continue development of this program via upgrades once we have mastered our craft. This programs reliability shall be in tune with the level of knowledge we have on VB.NET as of now. We applied proper labeling and object conventions for the program to exactly coordinate it with the VB.NET codes for optimal controls declarations and premium performance.
2011
Our Program held the following crucial VB.Net Syntaxes for it to be implied:
Dim [variable] As [datatype]
Dimension was used for the declaration of variables that needs to be utilized in our program the variables are usually the object names of our program and these variables are set into a certain data type using the AS code.
Me.SpinTime.Enabled = True
We applied this syntax, shown above this caption, to enable the timer for our slot machine program by setting it to True. This is necessary to time the movement of the objects in our game.
Randomize()
Quite literally the Randomize() command enables random generating of objects that are assigned to it for our program. This applies to numerical items in our slot machine program.
Me.Reel1.Text = CInt(Int((6 * Rnd()) + 1))
This is the syntax used to set the items for our slot machine program that we want to randomly display in its reels. These statements interact with the Randomize () function which then calls & allows it to be randomly generated within our slot machines form.
2011
To moderate the probabilities of winning and scoring in our slot machine game we made use of IF and Else Statements then we left the code to decide whether the reels showed a winning combination or not.
Our slot machine needed something to notify the user if they got a winning combination in the slot machine or otherwise We came up with inserting a MsgBox() function along with the slot machines game conditions, it pops up a window stating if the player won or not.
Score = Score + 10 txtScore.Text = Score
We used the syntax above to display and compute for the score in our slot machine. If you look closely youll find that each time the slot machine hits a jackpot the score will automatically add 10 points in the score box. These expressions are placed within the conditions of the game.
ScoringSys.Show()
The Show () function is necessary to redirect the user to the secondary form of our slot machine that shows the Scoring System of the game.
2011
It is expected that you are already aware of the requirements for the program if you read through this documentation without slipping to droopiness. If you missed reading the requirement specification for this program it is suggested you go back to chapter 4. Setting up our Slot machine program is simple if a desktop has the standard requirements for VB.Net programs and necessary ports for file sharing. To transpose our program to other desktops All we need is a device to transfer files such as a flash drive also known as the USB (Universal Serial Bus) look at the right side image. Or internet connection for online file sharing. SETUP Instructions: 1.] First we have to save our windows application file for the slot machine usually in the Visual Studio Projects folder located in the My Documents. To locate my documents you can simply find it in the desktop of your computer or click on START button on the lowerleft of your desktop screen then on the START panel youll see the My Documents folder on the upper right side.
2011
2.] In the My Documents Folder CLICK twice & locate Visual Studio 2008 folder to find our slot machine program project folder:
3.] After clicking the Visual Studio 2008 file folder its contents will be shown in your window, among the folders double-click on the one named Project
2011
4.] Once we have clicked the project folder there we will see our slot machine program folder designed for HIGH ENERGY Net Caf.
Save the file name on your flash drive. 5.] when our project folder is saved on the flash drive we can now export and import it to other desktops through copying and pasting. ALTERNATIVE DISTRIBUTION OF THE SLOT MACHINE PROGRAM: compress the file folder through winzip, 7z, winrar application then email it as a file attachment to the recipient!
2011
OPENING THE PROGRAM (for the client desktop where we save our slot machine project) When the slot machine program folder is transferred to the enddesktop all we need to do is open that project folder. Double click the icon that has the VB, infinity symbol and superscript 9 on the upright corner.
PRESTO!! We have succesfullt opened our Slot machine program application, debug it to run it. ;)
2011
7.4 User Manual To execute our Slot Machine Program simply follow these directives, this is after the completion of the setup: 1. Once, the visual studio solution for the Slot Machine program is opened, we got this during set up process repeat the steps 1 to 4 without transferring, you will be faced with the GUI (Graphic User Interface) of VB.Net for this.
We dont have to explain each of the parts of the GUI all we want is to publish our slot machine program in order for it to be an executable stand alone program without the complexity of having to open our visual studio again and again.
2011
2. To publish our slot machine program look for the BUILD MENU at the MAIN MENU bar for the VB. Net GUI which contains menus like File, Edit, View, and so so..
MENU BAR
3. Click the BUILD menu then it will drop down its options
2011
4. Once Clicking publish , the window will ask you to specify the location to publish your VB.net application. Dont mind that, click next right up.
5. Choose how your application would be installed, for our instance we choose from CD-ROM or DVD ROM for it is the basic. Hit NEXT.
2011
6. Opt if you want updates or not for application, since we are most likely using this privately and exclusively we prefer not to have updates. This program is not that extensible yet anyway..
Hit NEXT. 7.] your app is now ready for publish click FINISH!
*Its required to have a CD-ROM or DVD ROM for this process however for us to successfully build our application.
2011
PLAYING THE SLOT MACHINE This is practically the tutorial for the GAME for us to be able to play the game properly we should first introduce you its interface. The Slot Machine GUI
B D
A. Reels This is what you should look after when you play the slot machine this is where the combinations of the slot machine is displayed. If you match all the three reels you WIN. B. SPIN This is the button that ROLLS the reels of the Slot Machine. C. STOP This is what you press when you want the Reels of the Slot Machine to STOP. D. QUIT- Exits The Game E. SCORING SYSTEM- Shows the value of the score you earned. F. SCORE COUNTER Counts and Shows the score gained.
2011
To START playing the Slot Machine all you have to do is to push the SPIN Button that you see underneath the Slot Machine Reels.
When the SPIN button is pressed the Slot Machine Reels would begin to Roll.
For the Slot Machine reels to stop spinning all you have to do is press STOP button Beside the SPIN button. Upon Pressing Stop you will be notified by the game if you WON or NOT through Message Boxes. Just click OK when you receive them.
2011
To see the progress of your score just simply look at the text box atop the Slot Machine Reels.
To See what your Score is worth push the SCORING SYSTEM BUTTON beside the SCORE Counter.
2011
WINNING THE GAME To win the game simply watch the figures in the slot machine, then when you feel like the reels match, HIT STOP button at once.
All the three reels MUST be IDENTICAL for you to win.. To match this three reels you better keep close watch of the reels and if you see it match up hit the STOP button right away. You automatically get 10 points if you get the winning combinations. This game does not solely rely on LUCK but on TIMING as well.
2011
7.5 Live Support and Monitoring We the programmers are there to be approached whenever we are on-site while you are using our programs live. We would even present ourselves to you so youll be aware we are there.
7.6 Technical Support and Help-Desk Follow-Up Users are welcome to consult us when they encounter any difficulties in accessing and operating our program creations we can be reached via.. E-MAIL: [email protected] Landline.: 8732215 Or.. SMS: 09339731236
2011
DEVELOPMENT/ QUALITY ASSURANCE & ACCEPTANCE DISCLAIMER: Its Carmen Lim, As a young programmer, who tries hard to sound professional, Im holding myself accountable if there are problems and defects that came about with the programs I create. Im actually new with the VB.NET environment so I admit there would be faults in this program which is the slot machine and it is my debut program. However it does interest me and would like to further expand on this Information Technology subject. For technical difficulties on this program feel free to approach me so I can assist and make sure that this program would run properly. Im willing to fill the lax of my programs as I get deeper and deeper in VB.NET programing. 8.1 Development The development of the Slot Machine Program Project is handled with utmost care, codes are evaluated cluster by cluster. The one who created this program is taking necessary measures and precaution so as to ensure the execution of this program, however there is a time table we are following so this program would be having corrections and upgrades occasionally.
2011
8.2 Quality Assurance For the programmers part we would like to give you the report for our Slot Machine Program framework to show that the parts of this program are inept to function when it is already complete.
SLOT MACHINE PROGRAM MODEL Research & Development: -presentable and exudes the mood for quality Slot Machine gaming. -simple and on sharp in the VB.net codes used -works like the traditional 3-reel slot machine game.
HARDWARE & SOFTWARE SYSTEMS - works great in Advanced Microsoft operating systems NT/2000/XP. - program is fit to be written in CD ROM and DVD ROM. - Keeping resources simple for broader compatibility and adaptability of the program for many systems
OPERATIONS: -Controls clearly presented to users - Comprehensive program mechanics with appropriate notations for users to easily operate the program -will be tested for durability -endures regular usage.
2011
The slot machine program report from the previous page, are the conditions we are considering in constructing and developing our project and we are meeting that goal.
The Lucky Shocker Slot Machine is a recreational concept well accepted for game programming this is also one of those game programs where an Object Oriented Programmer can be measured and christened. The slot machine is a very flexible program as well so our development and quality matters are well embraced and considered since we are just budding programmers succeeding with the creation of this program is a leap toward exceptional programming. We are therefore taking pleasure in making this project, We are confident that the target audience will appreciate our work and efforts for this program and we are dedicated in satiating them and stir their fancies. We are still in the process of developing our program and was approved by the patron. We are enthusiastic in improving our craft so for the meantime we are encouraging the patience and support of those who are rooting for us to complete this project.
2011
TEST STRATEGY
We will be using the test case method in testing our Slot Machine Program, this method is used to test the parts of a program whether they work or not to probably detect any malfunctions and defects distinctly and acutely.
TEST CASE
01
OBJECTIVE
TEST DATA
Me.SpinTime.Enabled = True
CONCLUSION
The Option Explicit On Statement exactly points out if a variable should or shouldnt be declared.
2011
TEST CASE
02
OBJECTIVE
Checking if Option Strict On statement improves the ease of coding our slot machine program.
TEST DATA
Option Strict On
It should enable Timing for the Operations and Movement of our Slot Machine Program.
The statement does enable the time for our slot machine program.
CONCLUSION
2011
TEST CASE
03
OBJECTIVE
To see if the DIM (Dimension) Code correctly declares the variables in our form
TEST DATA
The variables in the DIM codes should all be rightfully declared in their proper names they shouldnt be mistyped
Seems that the variables are correctly placed in the DIM code and there are no indications of typo.
CONCLUSION
The DIM code for declaring variables did keep and ensured that the naming of the variables in it are correct.
2011
TEST CASE
04
OBJECTIVE
To see wether the Randomize() function enables randomization of data items we set for our Slot Machines Reels.
TEST DATA
Randomize()
the Randomize () function should allow randomization of the data items we assigned for our Slot Machine Reels
The Randomize() Function does allow randomization of Reel values when ran.
CONCLUSION
2011
TEST CASE
05
OBJECTIVE
To see if the code for Randomly Generates the Data Values we assigned for our Slot Machine Reels.
TEST DATA
Me.Reel1.Text = CInt(Int((6 * Rnd()) + 1)) Me.Reel2.Text = CInt(Int((6 * Rnd()) + 1)) Me.Reel3.Text = CInt(Int((6 * Rnd()) + 1))
The Random Number Generator Codes should correspond with the Randomize() function to randomly display data items for our slot machine
CONCLUSION
Success!! The data items does randomly show in the reels of our slot machine.
2011
TEST CASE
06
OBJECTIVE
To see if the code to disable the timer for our slot machine when the STOP button is pressed.
TEST DATA
Me.SpinTime.Enabled = False
The syntax should disable the timer of the slot machine when the STOP button is pressed.
CONCLUSION
2011
TEST CASE
07
OBJECTIVE
Checking if the If Else Conditional Statements does compare values to know if the combinations of our slot machines reel values are winning or losing.
TEST DATA
The syntax should compare the value of our Slot Machines and decide if it is a win or not.
Yes, The Code does indeed compare the values of our Reels accordingly and rightfully states a win if the Reel values are equal.
CONCLUSION
2011
TEST CASE
08
OBJECTIVE
To see if the MessageBox that declares if the game hit a WINNING Combination in our slot machines Reels
TEST DATA
the syntax should declare that the Reels of our Slot Machine Game has hit a winning combination.
CONCLUSION
No visible errors!
2011
TEST CASE
09
OBJECTIVE
To see if the MessageBox that declares if the game hit a LOSING Combination in our slot machines Reels.
TEST DATA
There should be a Message box that would appear in our slot machine that reveals that the reel combinations of our slot machine LOST.
CONCLUSION
2011
TEST CASE
10
OBJECTIVE
TEST DATA
Score = Score + 10
The Equation for the scoring in our game add 10 points if our Slot Machine WON.
CONCLUSION
2011
TEST CASE
11
OBJECTIVE
Seeing if the scores in our Slot Machine display on our score text box.
TEST DATA
txtScore.Text = Score
This code should display the scores in our slot machine in its textbox.
CONCLUSION
No error detected.
2011
TEST CASE
12
OBJECTIVE
Checking if the Show() function to jump into our Scoring System Form does work.
TEST DATA
ScoringSys.Show()
The Show() function should direct us to the ScoringSys Form of our Slot Machine
CONCLUSION
No error detected.
2011
TEST CASE
13
OBJECTIVE
To See if the Spin Button of our Slot Machine is responding to its codes.
TEST DATA
CONCLUSION
No error detected.
2011
TEST CASE
14
OBJECTIVE
TEST DATA
CONCLUSION
No error detected.
2011
TEST CASE
15
OBJECTIVE
TEST DATA
End
The Program should Close when the Exit Button is pressed because of the END command.
The Game Closes when the EXIT button of our Slot Machine is pushed.
CONCLUSION
ABSOLUTELY ERROR-FREE.
2011
FUTURE DEVELOPMENTS
The planning and developing of our basic slot machine program for HIGH ENERGY NET Caf, which we titled LUCKY SHOCKER is already realized and is good to be launched and do business to the masses.
Even though our Slot Machine Program is up and running and is already fit to pleasure the wide crowd of electronic gamers, We are not yet satisfied and plan to add more functions and features in the distant future.
Further developments would include more text displays. There are going to be more calculations that will relate the further enhance scoring it will be more than just summing scores up.
The program would have another gaming feature which would be the betting system here players are going to be allowed to enter a bet value and will be multiplied by the number of times they choose once they get a winning combination of reel images in the game.
We would also like to add a payout system so that players will have organization for the total of their winnings, this would take time in the making but for now this slot machine we developed is focusing on the main elements of the game of which are the reeling system and scoring.
2011
SUMMARY AND CRITICAL APPRAISAL 11.1 SUMMARY Summing up the project documentation, we believed we did a good job in instilling our concept and terms of reference for the program we are designing which is the LUCKY SHOCKER Slot Machine game which is licensed to the HIGH ENERGY Net Caf since they are our patron and in demand of this.
Our project is for company use in this case but we can distribute it generally as long as there are necessary negotiations are carried out. The slot machine program we designed is flexible and can be modified for different facilities and environment.
This project doesnt also benefit the patrons but is just like a preliminary exercise for the programmer, of whom is Carmen Lim. Our programmer is in need of experience so her programming skills would grow. She experienced technical errors and feeling okay about it since errors are what makes programmers effective since these are encountered commonly in program development it will enhance their problem solving skills.
All in all, our slot machine program project is beneficial to many we designed it to be friendly and engaging. We compel it to be something that audiences will adore and be accustomed with. THE SLOT MACHINE IS PURELY FOR ENTERTAINMENT PURPOSE and nothing NEFARIOUS!
2011
The LUCKY SHOCKER Slot Machine provided for this project is encoded with the standard languages used in VB,.NET language which is made possible by Microsofts .NET Framework no other coding schemes were implemented though it is possible we are just being accurate to the subject matter of our program. Codes were evaluated crucially and with great caution.
All the ideas for making the Slot Machine program was adapted and formed through the lectures and tutorials of the aspect.
There were researches for the logic of the slot machine and most of it came online those references are going to be enlisted at the end of this documentation.
However, our inspiration for this project wasnt relying on technology alone a lot of the inspiration for this project were external as for the design most of it was basing on the characteristics of HIGH ENERGY NET CAF and of our experiences of playing the slot machine.
2011
CONCLUSION
The making of this project documentation closes here and for parting words Id like to say that VB.Net for me would be the most dependable Object Oriented Programming Software that I have encountered so far. Making programs in it is pretty exciting but what I enjoyed the most is the designing part I bet a lot of programmers do. Encoding is really my Achilles heel but I will not give up understanding the facet.
In making the slot machine it wasnt as easy as I thought, I was pretty sure it would be fun but there are more coding logic there is to follow such as timers, picture loadings and higher declarations. As much as I was hyped making the project I was a bit chagrined with the obstacles that came with the concept. Having Errors were such a set back in the projects, and it bogged me a lot though I did everything in my power in straightening things.
All in all, this projects gratification of this project shall only be claimed if our program succeeded in its goals, how relieving and fulfilling must that feel.
When I get better in programming more and more system applications will be produced because of the experiences I had with VB.NET Im pretty it was all rewarding.
2011
BIBLIOGRAPHY
Nothing Specific in reference but most of the procedures here were based on the VB.Net Module provided by the supervisor and lecturer, most ideas were taken from previous VB.Net Machine Problems and Exercises.
The site I visit for coding help and definitions. http://www.vbdotnetheaven.com/ http://www.homeandlearn.co.uk/net/vbnet.html
The webpage I ran into for the Logic of making Slot Machines. http://www.stellarpc.com/articles/board.aspx?id=5
Those were the only reliable resource I had for this Project, include the notes and the project guidelines.
2011
INFORMATICS FESTIVAL MALL for providing quality education in computer technology. SIR JINO BARRANTES for being a proficient & accomodating lecturer and supervisor.