Skip to content

Commit 1b4f8c5

Browse files
author
Thomas Maeder
committed
use more appropriate names now that the additional move effect can be used for different purposes
1 parent ad5d320 commit 1b4f8c5

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

pieces/attributes/total_invisible.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ void total_invisible_move_sequence_tester_solve(slice_index si)
909909
* n+3 no solution found in next branch
910910
* (with n denominating solve_nr_remaining)
911911
*/
912-
void total_invisible_reserve_king_movement(slice_index si)
912+
void total_invisible_reserve_additional_effect(slice_index si)
913913
{
914914
move_effect_journal_index_type const base = move_effect_journal_base[nbply];
915915
move_effect_journal_index_type const capture = base+move_effect_journal_index_offset_capture;
@@ -928,7 +928,7 @@ void total_invisible_reserve_king_movement(slice_index si)
928928
else
929929
{
930930
/* reserve a spot in the move effect journal for the case that a move by an invisible
931-
* turns out to move a side's king square
931+
* turns out to move a side's king square or a pawn promotion
932932
*/
933933
move_effect_journal_do_null_effect(move_effect_no_reason);
934934
pipe_solve_delegate(si);
@@ -1258,10 +1258,10 @@ static void copy_help_branch(slice_index si,
12581258
slice_index const prototypes[] = {
12591259
alloc_pipe(STTotalInvisibleMovesByInvisibleGenerator),
12601260
alloc_pipe(STTotalInvisibleSpecialMovesPlayer),
1261-
alloc_pipe(STTotalInvisibleReserveKingMovement),
1261+
alloc_pipe(STTotalInvisibleReserveAdditionalEffect),
12621262
alloc_pipe(STTotalInvisibleMovesByInvisibleGenerator),
12631263
alloc_pipe(STTotalInvisibleSpecialMovesPlayer),
1264-
alloc_pipe(STTotalInvisibleReserveKingMovement)
1264+
alloc_pipe(STTotalInvisibleReserveAdditionalEffect)
12651265
};
12661266
enum { nr_protypes = sizeof prototypes / sizeof prototypes[0] };
12671267
slice_insertion_insert(si,prototypes,nr_protypes);

pieces/attributes/total_invisible.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void total_invisible_invisibles_allocator_solve(slice_index si);
6767
* n+3 no solution found in next branch
6868
* (with n denominating solve_nr_remaining)
6969
*/
70-
void total_invisible_reserve_king_movement(slice_index si);
70+
void total_invisible_reserve_additional_effect(slice_index si);
7171

7272
/* Instrument the solvers with support for Total Invisible pieces
7373
* @param si identifies the root slice of the stipulation

solving/machinery/dispatch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2276,8 +2276,8 @@ void dispatch(slice_index si)
22762276
total_invisible_special_moves_player_solve(si);
22772277
break;
22782278

2279-
case STTotalInvisibleReserveKingMovement:
2280-
total_invisible_reserve_king_movement(si);
2279+
case STTotalInvisibleReserveAdditionalEffect:
2280+
total_invisible_reserve_additional_effect(si);
22812281
break;
22822282

22832283
case STTotalInvisibleMovesByInvisibleGenerator:

stipulation/move.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static slice_index const move_slice_rank_order[] =
123123
STLostPiecesRemover,
124124
STLandingAfterMovePlay,
125125
STMoveCounter,
126-
STTotalInvisibleReserveKingMovement,
126+
STTotalInvisibleReserveAdditionalEffect,
127127
STKingSquareUpdater,
128128
STBGLAdjuster,
129129
STKoekoLegalityTester,

stipulation/slice_type.enum

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@
636636
ENUMERATOR(STTotalInvisibleSpecialMoveGenerator), \
637637
ENUMERATOR(STTotalInvisibleMovesByInvisibleGenerator), \
638638
ENUMERATOR(STTotalInvisibleSpecialMovesPlayer), \
639-
ENUMERATOR(STTotalInvisibleReserveKingMovement), \
639+
ENUMERATOR(STTotalInvisibleReserveAdditionalEffect), \
640640
ENUMERATOR(STTotalInvisibleRevealAfterFinalMove), \
641641
/* output slices */ \
642642
ENUMERATOR(STOutputModeSelector), /* select an output mode for the subsequent play */ \

stipulation/slice_type.enum.h

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)