This commit is contained in:
Neale Pickett 2014-07-28 17:22:00 +00:00
parent 85c1c07695
commit d590aca3be
4 changed files with 21 additions and 2 deletions

14
TODO.txt Normal file
View File

@ -0,0 +1,14 @@
BUGS
====
* Fix "random" bug
* Pull fuzzie tree
Requests
========
* Keep 12 hours of runs (720 runs)
* Merge devdsp fixes (https://github.com/devdsp/tanks/commits/master)
* Fix leaderboard
* Read sensors from "sensors" and not "sensor[0-9]"

View File

@ -12,7 +12,7 @@
#define TANK_CANNON_RECHARGE 20 /* Turns to recharge cannon */
#define TANK_CANNON_RANGE (TANK_SENSOR_RANGE / 2)
#define TANK_MAX_ACCEL 35
#define TANK_MAX_TURRET_ROT (TAU/20)
#define TANK_MAX_TURRET_ROT (TAU/8)
#define TANK_TOP_SPEED 7
/* (tank radius + tank radius)^2 */

View File

@ -24,6 +24,11 @@ expr $next + 1 > next-round
fn=$(printf "round-%04d.html" $next)
rfn=results$$.txt
# Clean up old games
ofn=$(printf "round-%04d.html" $(expr $next - 20))
echo "Removing $ofn"
rm -f $ofn
echo -n "Running round $next... "
cat <<EOF >$fn

View File

@ -75,7 +75,7 @@ BEGIN {
print " <h2>Rounds</h2>";
print " <ul>";
getline rounds < "next-round";
for (i = rounds - 1; i >= 0; i -= 1) {
for (i = rounds - 1; i >= rounds - 21; i -= 1) {
printf("<li><a href=\"round-%04d.html\">%04d</a></li>\n", i, i);
}
print " </ul>";