Not All Code Paths Return a Value in TypeScript

I’ve been working on a TypeScript implementation of the Oware variant of Mancala, and ran across an interesting case which is currently NOT a compiler error in TypeScript v1.7: public MakeMove(board: Board): boolean { var pos = this.clickedPosition; this.clickedPosition = null; if (null === pos) { return false; } if ( === pos.player) { if (board.GetStones(pos) […]