10-24-2007
Have a deal_card function that sets a variable called current_card. Need 3 cards? do:
deal_card
card1=$current_card
deal_card
card2=$current_card
deal_card
card3=$current_card
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I use a wget background process to downlaod a php file on my site.
Is there any way i can do this without downloading a file
like updating right from the shell itself? (0 Replies)
Discussion started by: mikey1090
0 Replies
2. Linux
Well Acording to my job...
Anyhelp plz.
I need some basic scripting stuff. (3 Replies)
Discussion started by: Irish Jimmy
3 Replies
3. Shell Programming and Scripting
Any ideas on whats the best way to form a hangman game via bash shell. (0 Replies)
Discussion started by: immyakram
0 Replies
4. Shell Programming and Scripting
Okay so I'm making a simple text based game that branches into different scenarios. By branching I mean branching off into whole different files with that part of the game in it. I got tired of working on scenario 1 so I'm working on scenario 2. As I get started and try to test it, I get an... (3 Replies)
Discussion started by: lemonoid
3 Replies
5. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I have written a script for a dice game that: (1) tells user that each of the 2 die are 6 sided (Spots=6); (2)... (3 Replies)
Discussion started by: LaurenRose
3 Replies
6. Shell Programming and Scripting
GitHub - deepgrace/tetris: Tetris implementation in all kinds of Programming Languages
Usage: bash Tetris_Game ] ] ] ]
Range:
#!/bin/bash
# Tetris Game // The Art Of Shell Programming
box0=(4 30)
box1=(4 30 4 32)
box2=(4 30 5 32)
box3=(4 28 4 30 4 32)
box4=(4 28 4 30... (69 Replies)
Discussion started by: complex.invoke
69 Replies
7. Shell Programming and Scripting
When I run the following script at the bottom it say cards remaining=44...It should be=35.
Can anyone tell me what I'm doing wrong. I've spent hours trying to get this to work and I can't go any further until this part works. thank you in advance
Cogiz
#!/bin/bash
# Date="November, 2016"
#... (2 Replies)
Discussion started by: cogiz
2 Replies
8. Shell Programming and Scripting
Hello guys I'm new to shell scripting and I need to make a game using shell script. I want to know if it is possible for me a total noob to shell scripting to make this game.
The game concept is simple:
First thing when you launch the script you get a menu in which you select if you want to... (3 Replies)
Discussion started by: Othmane
3 Replies
9. Shell Programming and Scripting
Hello,
I have a problem with the /etc/rc.d/init.d script to automatically update STEAM GAME ARK. I've converted 3 scripts into one, but something does not work correctly ...
The problem is in the file latestavailableupdate.txt / line 36/39. It think the problem is with script, it wrongly... (2 Replies)
Discussion started by: kshishu
2 Replies
10. Programming
Hi everyone, I need some help seriously. The game is in text mode. It will be based on questions and answers and simple commands. A menu containing options of the game including:
1-Create a new player.
2-Identify as existing player.
3-Launch a new game: this action opens a new game for an... (1 Reply)
Discussion started by: NaimZero
1 Replies
LEARN ABOUT REDHAT
vga_setchipset
vga_setchipset(3) Svgalib User Manual vga_setchipset(3)
NAME
vga_setchipset - force chipset
SYNOPSIS
#include <vga.h>
void vga_setchipset(int chipset);
DESCRIPTION
Force detection of a chipset (when chipset detection fails). vga_setchipset(VGA) can be useful if the chipset specific stuff or the SVGA
detection stuff gives problems.
However, at first the automatic detection should work well, and if not a specific chipset can be forced from /etc/vga/libvga.config.
Because of that, void vga_setchipset(int chipset) should probably never be used by applications. If used nevertheless, it should be called
directly before vga_init(3).
As of now the following values are defined for chipset:
UNDEFINED
This is the default and specifies autodetection.
VGA A plain VGA card, not that the SVGA must behave like an ordinary SVGA card then which will probably mean it is in an ordinary
(25x80) textmode.
ET4000 Tseng ET4000/ET4000W32(i/p) cards.
CIRRUS Cirrus Logic GD542x/3x cards.
TVGA8900
Trident TVGA 8900C/9000 (and possibly also 8800CS/8900A/B) cards.
OAK Oak Technologies OTI-037/67/77/87 cards.
EGA An ordinary EGA card. The notes about VGA apply.
S3 An S3 base card.
ET3000 Tseng ET3000 cards.
MACH32 A card (from ATI or not) based on the ATI Mach32 chipset.
GVGA6400
A Genoa(?) GVGA6400 card.
ARK ARK Logic ARK1000PV/2000PV cards.
ATI An ATI SVGA (VGA Wonder and friends) card. This does not (necessarily) include the newer cards (usually called Mach something).
ALI An ALI2301 based card.
MACH64 A card using the ATI Mach64 chipset. Support is not complete.
CHIPS Chips and Technologies chipsets 65525, 65535, 65546, 65548, 65550, and 65554 (usually in laptops).
SEE ALSO
svgalib(7), vgagl(7), libvga.config(5), vgatest(6), vga_getcurrentchipset(3), vga_setchipsetandfeatures(3)
AUTHOR
This manual page was edited by Michael Weller <eowmob@exp-math.uni-essen.de>. The exact source of the referenced function as well as of the
original documentation is unknown.
It is very likely that both are at least to some extent are due to Harm Hanemaayer <H.Hanemaayer@inter.nl.net>.
Occasionally this might be wrong. I hereby asked to be excused by the original author and will happily accept any additions or corrections
to this first version of the svgalib manual.
Svgalib (>= 1.2.11) 27 July 1997 vga_setchipset(3)