From c0e4a0d544c6559077834303ff1e23d889a5d78b Mon Sep 17 00:00:00 2001 From: iainp5 Date: Sat, 21 Sep 2024 11:43:50 +0100 Subject: Additional debug steps --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 9d2d908..f28a1ce 100644 --- a/rules.js +++ b/rules.js @@ -2434,9 +2434,9 @@ function valid_spaces_infl() { // Check adjacency information for (let adj_space_id of piece.adjacent) { - console.log('adj_space_id', adj_space_id) - console.log('checking adjacent space', spaces[adj_space_id].name_unique) + console.log('adj_space_id', adj_space_id) if (adj_space_id) { + console.log('checking adjacent space', spaces[adj_space_id].name_unique) const adj_piece = game.pieces.find(p => p && p.space_id === adj_space_id); console.log('adjacent piece', adj_piece) // Check if the adjacent space is controlled by the opponent -- cgit v1.2.3