The mobile edition of Ninja Assassin: Revenge gives you attacks that work in different situations. To get a feel for shuriken and sword attacks, look at how far away the enemy is and what space you have to move.
Gameplay preview. The CraDiff Games video includes footage from the mobile and browser editions. Use the mobile footage for the controls discussed below.
Try shuriken while you have space
When an enemy is still farther away, test a shuriken and watch how the enemy responds. Pick an encounter with enough room to see the attack travel. If it misses, retry from the same place and change when you throw it.

Use the sword when you can get close
For a sword attack, wait for a moment when you can get close enough for the strike. An opening after an enemy move gives you a chance to test your timing. Watch whether your blade reaches the enemy before changing your approach.
Practice both in an early mission
Choose one early encounter and try each attack on a separate attempt. Remember the distance that worked for each one. When you face a harder enemy, start with the attack you can land reliably instead of relying on the move with the most impressive effect.