[four-in-a-row] Initial position depends on board size.



commit 844c2be4b890e5d085e27d8c7b61c6924f675c33
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Dec 26 18:26:45 2019 +0100

    Initial position depends on board size.

 src/four-in-a-row.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/four-in-a-row.vala b/src/four-in-a-row.vala
index 8d06a0f..d9b1aae 100644
--- a/src/four-in-a-row.vala
+++ b/src/four-in-a-row.vala
@@ -347,8 +347,8 @@ private class FourInARow : Gtk.Application
             switch_players ();
 
         winner = NOBODY;
-        column = 3;
-        column_moveto = 3;
+        column = (BOARD_COLUMNS % 2 == 0 && get_locale_direction () == TextDirection.RTL) ? BOARD_COLUMNS / 
2 - 1 : BOARD_COLUMNS / 2;
+        column_moveto = column;
         row = 0;
         row_dropto = 0;
 


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