Case Closed - Season 1 Episode 189 The Desperate Revival ~The Wounded Great Detective~
Overview: The Detective Boys realize that the riddle is a reference to shogi and that the dragon refers to a promoted rook. They take the direction a rook is placed on the shogi board and escape the cave.