Try your best to get 21. If you get more than 21, you lose. If the dealer has more than you, you lose. Vice versa, but with you doing the winning, not the dealer.
I do not condone gambling in any way, shape, or form. This game is purely for entertainment purposes. I'm pretty sure this game has bugs, but I haven't found any yet.