Advanced Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsWeb DesignAdvanced Web Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 13th, 2012, 01:07 PM
tarilotta tarilotta is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 1 tarilotta User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 34 m 44 sec
Reputation Power: 0
Random Selection "Draft Simulator"

Hello,

I am working on a side project and part of it is to create a "Draft Simulator". Essentially, I need to have a database (there will be roughly 13,000 entries) and have the simulator pick 15 of these entries at a time, based on a few different specifications, and allow the user to make selections and store those selections in a separate area.
Sorry if this is confusing, I will try to outline it in more detail below...

Background Information:
This Draft Simulator will be for a trading card game. The point of the simulator is to let people practice creating a good deck of cards when random cards are given to them. The draft will include the person drafting and 7 AI's.
How the draft works is that there are 8 people and each person starts with a pack of 15 cards. Each person picks a card from their pack and passes the remaining cards to the person on their left who then picks a card to put into their deck and passes the remaining cards to their left. This continues until all of the cards are gone.


The Process [I think...]
I believe I will need to start this by creating a [SQL?] database with the 13,000 entries and their specific properties. Kind of like this...
Name | Image | Color | Symbol
CA-X72 | LINK | Red | Circle
CA-X75 | LINK | Orange | Square
CA-X93 | LINK | Yellow | Triangle
EG-C56 | LINK | Green | Oval
KK-R97 | LINK | Blue | Diamond

Then I will need to create the script to pull 15 of those images and create a "pack" for the user and each AI. The user will pick an image (a card) from this "pack" of cards will be placed into the users deck he/she is creating, then the rest of the "pack" will go around to the other 7 AI's before returning to the user. Each AI will need to select a card from the stack that works best with their deck they are building (thus the script can't just drop seven random cards before returning to the user for selection).
Think of it like this...
There are 8 people and a standard deck of playing cards. If everyone takes cards at random then you may end up with 2 Hearts, 1 Club, 2 Spades, and 1 Diamond - If your goal is to have all the same suit then this tactic wouldn't make much sense. This is why the AI's need to be able to pick their hands in the same way a real person would. If they have 2 Clubs and a Spade they need to know to look for another Club instead of just taking a random card.



So that is what I need to do, this issue is that I don't know where I should start, what language would be the best, etc...
Any help would be greatly appreciated!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignAdvanced Web Development > Random Selection "Draft Simulator"


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap