ref: ec532added5401f14b542fd7391be84322ac5cef
parent: d056c1e8904e8c0722331ac2c75f7396fd2dda80
author: mkf <mkf@cloud9p.org>
date: Wed Jun 5 18:47:26 EDT 2024
glendy2.man: add algorithms
--- a/doc/glendy2.man
+++ b/doc/glendy2.man
@@ -141,9 +141,9 @@
.I calc
and
.I nextglenda
-are... uh..., functions i guess?
-i don't know what they do. they are supposed to be computer's algorithm,
-please let me know if you know what's going on!
+Score1 calculates how many turns would it take to reach the edge from a specifc point in grid.
+Calc sets the score of whole map, and nextglenda makes a move based on shortest path.
+if there are two (or more) equally short paths, it will pick one randomly.
.PP
.I restart
reverts grid layout to