diff --git a/backend/models/room.js b/backend/models/room.js index 12b12ec..7806ca4 100644 --- a/backend/models/room.js +++ b/backend/models/room.js @@ -7,12 +7,11 @@ const PlayerSchema = require('./player'); // Safe/colored box positions in Ludo (where pawns cannot be killed) const SAFE_POSITIONS = [16, 29, 42, 55]; -const HOME_ENTRY_POSITIONS = [66, 27, 40, 53]; +// const HOME_ENTRY_POSITIONS = [66, 27, 40, 53]; const STAR_POSITIONS = [63, 24, 37, 50]; const isSafePosition = (position) => { - return SAFE_POSITIONS.includes(position) - || HOME_ENTRY_POSITIONS.includes(position) + return SAFE_POSITIONS.includes(position) || STAR_POSITIONS.includes(position) || position > 66; // Also safe in home stretch };