Implement logic to judge Shandian for human and computer.