You should specify whether this is an immediate winning condition (like capturing a King), or a delayed one (which could still be trumped by capturing that King on the last rank, in an 'after-move'). Or, in other words, whether the move to last rank must be legal (= avoid stepping into check). This is especially important since regular Shogi does not really have a checking rule like Chess; exposing your King to capture just loses the game, rather than qualifying as an illegal move that has to be retracted to continue the game from there.
You should specify whether this is an immediate winning condition (like capturing a King), or a delayed one (which could still be trumped by capturing that King on the last rank, in an 'after-move'). Or, in other words, whether the move to last rank must be legal (= avoid stepping into check). This is especially important since regular Shogi does not really have a checking rule like Chess; exposing your King to capture just loses the game, rather than qualifying as an illegal move that has to be retracted to continue the game from there.