Commit 3d0e89de authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix: Ludo board — correct clockwise player order and home positions

The player order was wrong — Blue was assigned to Green's position and
vice versa. On a standard Ludo board going clockwise from Red (top-left):
  Red(TL) → Green(BL) → Yellow(BR) → Blue(TR)

Fixed:
- COLORS order: red, green, yellow, blue (was red, blue, yellow, green)
- HOME_BASES: matched to correct corners
- HOME_COLUMNS: Green enters from left, Blue from right
- HOME_ENTRY: correct global squares for each player
- Center triangles: Red(top), Green(left), Yellow(bottom), Blue(right)
- Home zone drawing: correct corner positions
- Player panels: top row = Red(TL) + Blue(TR), bottom = Green(BL) + Yellow(BR)
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent ffa60ac2
...@@ -54,12 +54,12 @@ export const HOME_COLUMNS = [ ...@@ -54,12 +54,12 @@ export const HOME_COLUMNS = [
[[13,7],[12,7],[11,7],[10,7],[9,7],[8,7]], // Blue: right-center going left [[13,7],[12,7],[11,7],[10,7],[9,7],[8,7]], // Blue: right-center going left
]; ];
// The GLOBAL square just before entering home column // The GLOBAL square just before entering home column (local pos 51 → global)
// Red: after square 51 [6,0] → enters home [7,1] // Red (start=0): global 51 [6,0] → home [7,1]
// Green: after square 11 [0,7] → enters home [1,7] // Green (start=13): global 12 [0,8] → home [1,7]
// Yellow: after square 24 [7,14] → enters home [7,13] // Yellow (start=26): global 25 [8,14] → home [7,13]
// Blue: after square 37 [14,7] → enters home [13,7] // Blue (start=39): global 38 [14,6] → home [13,7]
export const HOME_ENTRY = [51, 11, 24, 37]; export const HOME_ENTRY = [51, 12, 25, 38];
// Safe squares — entry squares + midpoints between starts // Safe squares — entry squares + midpoints between starts
export const SAFE_SQUARES = [0, 8, 13, 21, 26, 34, 39, 47]; export const SAFE_SQUARES = [0, 8, 13, 21, 26, 34, 39, 47];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment