[DEV]add judgeRule.hpp & judgeRule.cpp
[DEV]commit the judgeRule.cpp coded by qWen(with too many bugs >_<)

Signed-off-by: CHEN <nearc116@hotmail.com>