Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 roulette, ball number correlation.
Index -> Programming, Turing -> Turing Help
Goto page Previous  1, 2, 3  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
TheXploder




PostPosted: Sat Jan 31, 2004 10:30 pm   Post subject: (No subject)

fine, yours is better I admit it, just one update.. just I think it slows too abruptly..
Sponsor
Sponsor
Sponsor
sponsor
Paul




PostPosted: Sat Jan 31, 2004 10:31 pm   Post subject: (No subject)

you can change it with the counter
we64




PostPosted: Sat Jan 31, 2004 10:38 pm   Post subject: (No subject)

he... I got the basic codes, you just added or changed it Wink
Boarder16




PostPosted: Sat Jan 31, 2004 10:39 pm   Post subject: (No subject)

i agree with him
Paul




PostPosted: Sat Jan 31, 2004 10:42 pm   Post subject: (No subject)

yes, because we all know how hard it was to make the animation, it might have taken me several hours Laughing
TheXploder




PostPosted: Sat Jan 31, 2004 11:03 pm   Post subject: (No subject)

But the problem with your's paul is it stops at the same spot every time, look at this code, I improved the old code...

code:

var limit : int := Rand.Int (360, 720)
var count : int := 0
var speed : int := 1
var speedInc : int := 1

drawoval (100, 100, 52, 52, black)

loop
    speedInc := speedInc + 1
   
    if count >= 0 and count < round (limit / 2) then
        if speedInc >= 20 then
            speed := speed + 1
            speedInc := 1
        end if
    end if

    if count >= round (limit / 2) then
        if speedInc >= 20 then
            speed := speed - 1
            speedInc := 1
        end if
    end if

    if speed >= 5 then
        speed := 5
    end if

    count := count + speed
   
    if speed <= 0 then
        speed := 1
    end if

    drawfillarc (100, 100, 50, 50, 0 + count - speed, 10 + count - speed, white)
    drawfillarc (100, 100, 50, 50, 0 + count, 10 + count, red)

    if count >= limit then
        exit
    end if

    delay (15)
end loop


I like when we learn from eachother, isn't that what we are here for...
not to say, oh look at my code, oh see you took my code, waz up with that, your the one asking for help and we r just trying to improve on it..
Paul




PostPosted: Sat Jan 31, 2004 11:07 pm   Post subject: (No subject)

we're joking dude, nice code.
we64




PostPosted: Sat Jan 31, 2004 11:16 pm   Post subject: (No subject)

TheX, pretty nice...
Sponsor
Sponsor
Sponsor
sponsor
shorthair




PostPosted: Sat Jan 31, 2004 11:36 pm   Post subject: (No subject)

Play nice boys , no need for the spam posts paul , or else you get in trouble for posting to mcu h Laughing Laughing , Wow ive become addicted to teh spam section , i have 92 popts that dont count in my post count , im like a junkie for it now
Paul




PostPosted: Sun Feb 01, 2004 12:07 am   Post subject: (No subject)

I might not have time to work on this, you guys feel free to make your own roulette programs.
shorthair




PostPosted: Sun Feb 01, 2004 12:12 am   Post subject: (No subject)

ohhhhh , thakns , i already tried and ended up making poker , i wish i could find it, my blackjack was my greatest game so far
Paul




PostPosted: Sun Feb 01, 2004 12:16 am   Post subject: (No subject)

cool, I might ponder a bit on making black jack.
shorthair




PostPosted: Sun Feb 01, 2004 12:19 am   Post subject: (No subject)

it was my midterm project in compsci this year ( have you seen it , its way back somewher ein the files , posted it when i first joined , thought i was hott stuff ( i was wrong ) )
Paul




PostPosted: Sun Feb 01, 2004 2:49 pm   Post subject: (No subject)

Heh, if I were told to make blackjack right now, I would have little idea on how to go about it. I'll try to find yours using search.
Cervantes




PostPosted: Sun Feb 01, 2004 2:58 pm   Post subject: (No subject)

the best kinds of projects are the ones that you have little idea how to go about doing. You learn best doing those kinds of projects. DO IT!!

*ahem*

if you want to Eh
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 3  [ 32 Posts ]
Goto page Previous  1, 2, 3  Next
Jump to:   


Style:  
Search: