Oh, Okay now I understood thanks friend xD. There is actually, tripleTriadCheckLastScore() has the last game's score, so you can know if you won or lost, you can use in conditional branches like. tripleTriadCheckLastScore() > 5 means you won, so you reward him with something.