Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Time delay problem for project

  1. Sep 21, 2006 #1
    Hey, I'm busy doing a project where we have to make the blackjack game. Now my problem is the time delay when they are dealing out the cards. As when we run the game, and click deal we see that both house and player have the cards already.

    Tried creatin my own delay with for loop, or using delay or using sleep, and all it does is delay the time between the moment the button was clicked for a few seconds. Then it deals out the cards quickly again.

    All i want it to do is when i call the deal() to deal a card to the house, it deals it..delays for a few seconds, then deals to the player...then delays, then deals to the house...back and forth.

    Can anyone help? thanx

    toobs21
     
  2. jcsd
  3. Sep 21, 2006 #2

    CRGreathouse

    User Avatar
    Science Advisor
    Homework Helper

    You'll at least have to tell us what language you're using.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook




Loading...
Similar Threads for delay problem project Date
Time delay for Persistant HTTP Oct 26, 2013
C/ C++time delay problem Mar 22, 2013
Write file delay in Fortran Feb 22, 2013
C++ Time Delay Nov 18, 2009
A timer Interrupt to cause delay Nov 27, 2008