Submitted scripts and programs
Forum rules
Your own work only.
-
machinebacon
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
-
Contact:
Unread post
by machinebacon » Sat Jun 01, 2013 5:18 am
Consists of two files and works with BBQ >2.0 out of the box. Others need the bsdgames bsdgames-nonfree ninvander pacman4console packages
/usr/local/bin/bbqgamecenter
Code: Select all
#!/bin/bash
FILE=/usr/local/share/gamelist
head -$((${RANDOM} % `wc -l < $FILE` + 1)) $FILE | tail -1 | xargs x-terminal-emulator
/usr/local/share/gamelist
Code: Select all
bastet
adventure
ninvaders
worm
snake
pacman4console
hangman
monop
backgammon
battlestar
boggle
caesar
canfield
cribbage
gomoku
hack
hunt
mille
phantasia
robots
rogue
sail
tetris
trek
wargames
worm
wump
No trailing space at the end of the file. :)
..gnutella..