1. Re: Help With My Game of Black Jack
- Posted by Irv Mullins <irv at ELLIJAY.COM> Dec 01, 1999
- 559 views
In my previous answer, I wrote:
for card = 1 to 52 do -- cards images will be in 1.bmp, 2,bmp, 3.bmp.....
image = read_bitmap(sprintf("%d.bmp",card)) -- error here!
deck = append(deck,image[2])
read_bitmap is expecting a quoted filename so you'll have to embed quotes:
image = read_bitmap(sprintf("\"%d.bmp\"",card)) -- or something, experiment
until it works ;)
Irv

