this is a project for AI class,using Qt5.0