Code test for card game