mirror of
https://github.com/LucasCodeur/alcu.git
synced 2026-04-28 17:44:34 +02:00
some fix for game management + fix for ai (it's unbeatable)
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ $# -lt 2 ]; then
|
||||
echo "usage: bash map_gen.sh [size] [range]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
unset var
|
||||
for i in $( seq 1 $1 )
|
||||
do
|
||||
var+="\n$(( RANDOM % $2 + 1))"
|
||||
done
|
||||
var="${var}\n";
|
||||
echo -e $var | tail -n +2
|
||||
|
||||
Reference in New Issue
Block a user