some fix for game management + fix for ai (it's unbeatable)

This commit is contained in:
2026-03-28 20:32:16 +01:00
parent 60632fc2a7
commit 004b073669
5 changed files with 72 additions and 43 deletions
Executable
+15
View File
@@ -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