[iagno] Decrease medium difficulty level.



commit 9373bb197d7ca3a0b3f08a06e2b8fe7dbdf19fc9
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sun Aug 4 15:43:11 2019 +0200

    Decrease medium difficulty level.

 src/computer-reversi.vala | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/computer-reversi.vala b/src/computer-reversi.vala
index 91521ce..0016c6f 100644
--- a/src/computer-reversi.vala
+++ b/src/computer-reversi.vala
@@ -154,11 +154,10 @@ private class ComputerReversiHard : ComputerReversi
                 int16 tile_heuristic = heuristic [x, y] - 9 * a;
                 if (g.is_empty_tile (x, y))
                 {
-                    tile_heuristic /= 2;
                     if (even_depth)
-                        count -= tile_heuristic;
+                        count -= tile_heuristic /* / 2 */; // half is harder, but we artificially decrease 
the medium difficulty level
                     else
-                        count += tile_heuristic;
+                        count += tile_heuristic / 2;
                 }
                 else if (g.is_current_color (x, y))
                     count += tile_heuristic;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]