Console implementation of sequence card game c

broken image
broken image

Now, give this repl a name, like 'SnaPy'.Īfter the repl has booted up, you should see a main.py file. Choose Pygame as the template to create a repl from. Let's head over to Replit and create a new repl.

broken image

falsely calls 'Snap!'), then the other player takes the pile of cards. To simplify this tutorial, we'll limit our game to 2 players. We can spend more time on the modelling and visualization, which can be used on other card games too. The rules are pretty simple, which makes it great for building a first card game.

broken image

We get to build a model of the game, game logic, and a visual interface.Ī classic card game is Snap. Card games are a great way to learn how to program.

broken image