For WordPress, you would need to know basic PHP, and also how wordpress works.
For this, I suggest reading Writing a plugin for WordPress
For the scratch card, you can make this in CSS and JS. For an example, I refer you to Canvas – Scratch Card
´
1
solved How to get starting creating a WordPress plugin? [closed]