Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Blackjack (https://forums.graalonline.com/forums/showthread.php?t=50233)

GoZelda 01-07-2004 04:58 PM

Blackjack && uncompleted Reflection
 
1 Attachment(s)
Yeah, i made a blackjack game.
In the top-right corner is your total of cards, and in the top-left the computer's. I added some AI to the computer - but because he's the bank, he has some priviliges XP

GoZelda 01-07-2004 05:27 PM

1 Attachment(s)
And here is the reflection - though very buggy, i guessed i could've let you see it. It only works if you click below the polygons.

CheeToS2 01-07-2004 09:18 PM

I hit, then I stood, then the compu hit, and it said the compu won. It only had 19

GoZelda 01-07-2004 10:05 PM

And what did you had?

osrs 01-07-2004 11:01 PM

Little bugs but nice :)

D1ce2 01-07-2004 11:08 PM

Yes Little bugs ;)

DarkShadows_Legend 01-08-2004 03:42 AM

Interesting.

I made a blackjack game about a year ago for Frolic, but it never got released and I don't remember if I ever finished it.
There are surely some bugs in this. The gfx for it is on my old computer. I still have a copy of the script though. They sucked either way. :(

edit:
Sorry. I attached the level with the gfx in the other post. It won't let me attach in this one????

DarkShadows_Legend 01-08-2004 04:11 AM

1 Attachment(s)
attachment

sYnergy247 01-10-2004 02:30 AM

wtf is al the crazy tiles when you quit lol

GoZelda 01-10-2004 11:27 AM

Revenge of the system (i tried to make it real laggy but didn't work :( )

Hevaricubed 01-10-2004 12:27 PM

bouncy bouncy tiles like tiggers!

GoZelda 01-10-2004 01:22 PM

I'm thinking of making a blackjack game in C++. Unfortunatly, C++ doesn't have random(0,100), but
int random = (rand()%10);
Which is not newbie-friendly :(

Loriel 01-10-2004 02:28 PM

Quote:

Originally posted by GoZelda
int random = (rand()%10);
Which is not newbie-friendly :(

Which is not even how you are supposed to do it, try:
random = (int)(10.0 * rand() / (RAND_MAX + 1.0));
Probably not much difference these days, but rand()%10 used to return less random numbers.

GoZelda 01-10-2004 02:37 PM

*only read 1/10th of the course*
:p
I thought you were the C, not C++ dude...

Loriel 01-10-2004 02:40 PM

Yup, rand() is a C function.


All times are GMT +2. The time now is 09:06 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.