I have no intent in advertising, this is just what helped me.
First of all, a programming project may be a bad idea, because it would take much learning and practice into the specific subjects and programming language witch is just not feasible with energy and mental stamina were left to work with.
So as a feasible alternative you can focus on is getting better at solving problems with algorithms. I have found 2 games that really helped me with this:
1. Human Resource Machine
2. 7 Billion Humans
2# is the sequel to #1, so starting with #1 will makes it easier.