Yes, it is possible. It is not simple. There many rules in chess, and many code libraries already exist for these rules. Making them from scratch is not going to be easy.
I do not recommend working on anything you can't imagine planning out in your head for anything with a deadline, that you would need to rely on asking random strangers on the internet for the completion of an assignment.