Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Game Programming > Yahtzee Game


Reply
 
Thread Tools Display Modes
  #1  
Old 11-27-2009, 07:37 AM
jjss_19 jjss_19 is offline
Newcomer
 
Join Date: Nov 2009
Posts: 5
Default Yahtzee Game


Hi I'm in a grade 10 programming class and for an assignment have to create a yahtzee game. I am having a problem. When the player rolls the dice and if they want to keep that dice they click a checkbox to that corresponding dice.
Can someone please give me the code for this?
Reply With Quote
  #2  
Old 11-27-2009, 11:10 AM
Iceplug's Avatar
Iceplug Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

Um, this is not a code handout site and we don't give code on demand.
If you would like help on something, tell us what problem you are having.
If you do not know where to start, I'd recommend looking over your notes and practicing the techniques that you've practiced in class.
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
  #3  
Old 11-27-2009, 11:22 AM
Qua's Avatar
Qua Qua is offline
Impetuous & volatile

* Expert *
 
Join Date: Apr 2005
Posts: 2,177
Default

Hint: You will properly need to store the dice value in a variable. Since you need to store more than a single dice roll you will need several variables or perhaps an array if you want to get fancy.
__________________
Reading is the foundation for all knowledge - Unknown.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->