Click to See Complete Forum and Search --> : My first script - Blackjack game
tody4me
03-06-2006, 04:34 PM
Just finished working on this. Didn't write the whole thing myself, got a jump start on it from this month's linux journal article about how to create functions and logic in scripts. Comments, suggestions, modifications are all welcome.
Link to code. Too long to paste here directly.
http://rafb.net/paste/results/XhNFlb76.html
tody4me
03-07-2006, 03:10 PM
I posted a working copy up on freshmeat.net and on sourceforge.net for those that are interested. I left the source open and licensed under GPL 2 or higher.
gamblor01
03-07-2006, 04:50 PM
That's a pretty impressive first script. I think my first script was this:
#!/bin/bash
echo "sup thugs"
exit 0
:p
tody4me
03-07-2006, 06:04 PM
Thank you. Yeah, I tried a simple bash script, but I couldn't ever get it to execute for some reason. This is the first one that I attempted that I actually was able to get to work and didn't get frustrated and just deleted the thing like with all the previous attempts. I was going to put it into different files and import the code, then make changes to one portion of the script without affecting the other files, but I never could figure that out either. Hopefully I can figure it out sometime, and put new code up on the sites when I get it working. I would like it to be a fully functioning black jack program/script without the gui for those that like the cli more than the gui.