File: risk

package info (click to toggle)
xfrisk 1.2-10
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,344 kB
  • sloc: ansic: 16,942; makefile: 272; sh: 29
file content (23 lines) | stat: -rw-r--r-- 485 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e

# Computer AI players to load
OPPS="aiDummy aiConway aiColson"

if [ $# -ge 1 ]; then
	SERVER=$1
else
	SERVER=localhost
	echo -n Loading local riskserver into the background...
	/usr/games/friskserver localhost > /dev/null &
	echo done.
fi

for i in $OPPS; do
	echo -n Loading computer player $i for play on $SERVER...
	/usr/games/$i $SERVER > /dev/null &
	echo done.
done

echo -n Now starting xfrisk client for play on $SERVER...
/usr/games/xfrisk $SERVER &
echo done.