import { BoardHandler } from '../board/boardhandler' ; import { LineStudier } from './linestudier' ; export class StudyBoardHandler implements BoardHandler { private lineStudier_ : LineStudier ; constructor ( lineStudier ) { this . lineStudier_ = lineStudier ; } onMove ( fromSquare , toSquare ) { this . lineStudier_ . tryMove ( { fromSquare , toSquare } ) ; } onChange ( ) { } onScroll ( ) { } }