My problem is about filling an $m\times n$ board with $A$'s and $B$'s to get the maximum possible score. The score is computed by these rules. Let $y\ge 1$ be a real number.
Each $A$ which is not edge-adjacent to a $B$ is worth one point.
Each $A$ which is edge-adjacent to a $B$ is worth $y$ points.
Each $B$ is worth zero points (the only value of $B$ is to increase the value of neighboring $A$'s).
Question: In terms of $y$, what is the maximum possible score?
My thoughts: If $y < 1$, it's simply best to fill the whole board with unit $A$s. If, $y \geq 2$, then it seems the placing would be more complicated. The solution for this case seems to be above my weight class.
First, a single B can be adjacent to up to 4 A's, making a cross shape. If $y \le 5/4$ this is worse then just placing 5 A's so for such $y$ the best solution is just to place A's everywhere regardless of board size.
If $y > 5/4$ this cross shape with a B surrounded by 4 A's gives the most points per field of the board. One can't fill any rectangular grid completely with these crosses but one can arrange them without any empty spaces inbetween so the only problem arises around the edges of the board. So if the board is very large, filling the entire center with these crosses is best.
For the edges you can start with all A's and then check whether you can improve this a bit by placing a few more B's that are adjacent to 2 or 3 A's. Whether this helps depends on whether $y > 3/2$ and $y>4/3$ and the optimal configuration will take some trial and error.