You'll learn much more by doing it yourself.
Plan it, then program it, debug it and use it.
Even with little programming knowledge you'll be more than able to make a game that uses a turn-based system.
Try it, then ask here if you get stuck with specific parts. The community is happy to help you!
Don't ask for code, that way you'll learn little to nothing. The purpose of the forums is to learn. (at least in this section)
I assume that this answer isn't what your where looking for, but believe me, it's for you own good!
All the best!
Cheers!