Menu

Code Commit Log


Commit Date  
[r934] by nerius

Adding qBestStrategy etc. E.g., QBEST_STRAT_WEIGHTED_3_BEST_FUTURE_SCORES.

2023-08-31 15:45:43 Tree
[r933] by nerius

Renaming speedyFindRotatedBlock() to findRotatedBlock() and removing the old
findRotatedBlock().

2023-08-30 22:30:23 Tree
[r932] by nerius

This will be an attempt at using BlockGenerator.speedyFindRotatedBlock(). I
wonder how it will perform.

2023-08-30 21:59:44 Tree
[r931] by nerius

Making some incremental optimizations to net.blockout.meta.BlockGenerator.
Adding inner class BlockInfo which is essentially a net.blockout.Block except
that it's not subjected to as much heap allocation or error checking. Adding
function getBlockOrientationLookup() which returns a HashMap of String rotation
to BlockInfo object, which will be used in tandem with the other new function,
speedyFindRotatedBlock(), which is an attempt to improve upon the existing
function findRotatedBlock() as far as performance goes. Adding an internal
static HashMap named 's_rotationsCanonicalPlus' which maps the existing
canonical rotations, plus "x", "-x", "y", "-y", "z", or "-z" tacked onto each
(considers all permutations), mapping that to the actual canonical rotation.
This is used by simplifyCompositeRotation() which greatly speeds up its
performance in the most common use cases. A second two-arg
simplifyCompositeRotation() is needed, which allows this cache to be bypassed,
so that intialization calls can still be made with the use of that function,
before the extra cache is created.

2023-08-30 21:37:32 Tree
[r930] by nerius

Committing changes which now use BlockGenerator.findRotatedBlock() to consider
the post drop rotation slide moves, instead of using e.g. rotateY() etc. in the
same class, BlockGenerator. I am still trying to fine tune this code to
improve its performance even further.

2023-08-29 21:10:20 Tree
[r929] by nerius

Adding function findRotatedBlock() to net.blockout.meta.BlockGenerator. This
is already showing improvements in computer player performance (to be committed
soon), but strangely only after the first few moves. I am going to try to
study the bottlenecks in this function and improve it further. I believe that
the computation of the canonical rotation can be improved upon in this special
case.

2023-08-29 20:59:34 Tree
[r928] by nerius

Removing 'error.blo'.

2023-08-28 22:34:13 Tree
[r927] by nerius

Removing 'TODO' from comment, but leaving comment.

2023-08-28 22:32:31 Tree
[r926] by nerius

Reverting back to the plain vanilla way of ordering ⟨xOff,yOff⟩ pairs. The new
way, which started in the center, sort of, and expanded outwards, sort of,
was causing really strange issues. It probably had bugs. It was also overly
complicated. Maybe at some future point I will revisit this interesting
problem.

2023-08-28 22:31:44 Tree
[r925] by nerius

With the new xOff,yOff order the game stalled for some reason. Saving. There
was no output which would indicate the nature of the problem.

2023-08-28 20:16:21 Tree
Older >
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.