4 Replies - 2662 Views - Last Post: 21 April 2009 - 05:55 PM Rate Topic: -----

#1 uncoded1  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 21-April 09

i need help writing a program for a slot machine

Post icon  Posted 21 April 2009 - 05:22 PM

i am in a visual basic class, i hate it and we have a project to make a slot machine. any help would be greatly appreciated.
Is This A Good Question/Topic? 0
  • +

Replies To: i need help writing a program for a slot machine

#2 BetaWar  Icon User is offline

  • #include "soul.h"
  • member icon

Reputation: 1155
  • View blog
  • Posts: 7,167
  • Joined: 07-September 06

Re: i need help writing a program for a slot machine

Posted 21 April 2009 - 05:25 PM

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: :code:

Thanks.
Was This Post Helpful? 0
  • +
  • -

#3 uncoded1  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 21-April 09

Re: i need help writing a program for a slot machine

Posted 21 April 2009 - 05:41 PM

i understand that and we have created the user interface and know what we need to do just do not have any idea what actual code we need.
We have three picture boxes and a spin button when the spin button is clicked we want one of three images to appear in each box, if they match you win if they don't you lose.
we know you need a random generator.
before you can spin you enter a bet amount in a text box, and if you win or lose we have a pot box that keeps track of your money.
now any help would greatly appreciated.
our teacher thinks everyone knows how to write code, i'm a construction major, i know nothin about writing code or where even to start
Was This Post Helpful? 0
  • +
  • -

#4 sbell1099  Icon User is offline

  • Inspiring StoryTeller
  • member icon

Reputation: 16
  • View blog
  • Posts: 685
  • Joined: 28-October 08

Re: i need help writing a program for a slot machine

Posted 21 April 2009 - 05:50 PM

View Postuncoded1, on 21 Apr, 2009 - 11:22 PM, said:

i am in a visual basic class, i hate it and we have a project to make a slot machine. any help would be greatly appreciated.

Why do Visual basic then if you hate it

Plus If you want help like beta said but i can point you in teh right direction

look here ( didn't check the download out but i should help
http://www.freevbcod...ode.asp?ID=1316

a youtube video here
http://www.youtube.c...h?v=zTNwt-L-0co
Was This Post Helpful? 0
  • +
  • -

#5 firebolt  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 92
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Re: i need help writing a program for a slot machine

Posted 21 April 2009 - 05:55 PM

You need something like Random Integer where you assign a number to each picture and then you randomize that.
Also like an If statement stating If you get this combination then you win or get this much money.
But we need to see your code to understand the nature of you expertise.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1