views
19

Comments (1)

What do you think?

Yes, this game didn't go according to plan.

I hurried to release something new for these boring tasks :)

STORY:

This is a build based on pure knowledge in web programming, so gradually this project will expand depending on changes and work hard to gain new knowledge in the development of something new.

I came up with this idea by accident and I decided to offer it to other people, and in the end they decided to recreate this game on a game engine. but, this initiative made me feel better and I decided to try to solve this problem myself using skills.

I'm not sure if everything works perfectly, but I think it will serve as a good example for other developers in terms of the first steps to creating similar projects.

Deck:

image.png

Uno classic uses a special deck of 108 cards divided into 4 colors: blue, yellow, red and green.

How to play the game:

image.png

All players start with 7 cards and the player who starts the first round is randomly chosen.

  • In their turn each player must play a card of the sameĀ color, type or numberĀ as the card face up on the table.

  • If a player cannot play any cards, they mustĀ draw a card from the deck. In that case, they may play that card or pass the turn.

Tip: If you want, you can draw directly from the deck and keep the cards you have in hand.

Special moves

  • The cardsĀ draw 2Ā can be chained. So if you play this card, the next player can respond with another draw 2. The following player will draw 4 cards.

  • TheĀ wild card +4Ā can only be play if you have no other card to play, although you can break this rule and play it whenever you want. šŸ˜‰

    If the next player suspects that this rule has been broken, he can report you.

    • If you have respected the rule, the other player will automatically draw 6 cards (4 for the wild card and 2 for the penalty).

    • If you break the rule and get caught, you will be penalized with 4 cards for lying. šŸ˜…

Last card and end of round

  • When you have a card left, you must warn the other players by pressing the buttonĀ Last one.

  • If another player presses the buttonĀ Last oneĀ before you, you must draw 2 cards.

Tip: you can press the ā€œLast oneā€ button before playing the card.

When a player plays their last card, they win the round and the winning pair scores the points of all the cards that were left in hand.

open source for game developers:

Here is the open source code from this layout, I put it together purely for understanding.

You can find the code you need by following this link to the repository and download it: https://github.com/localhost-four/Classic-Uno

#uno #action



all-ages

Small resources taken from files:

The first minor patch: I decided to make it possible to switch from one line to another, thus now we have more space for storing cards for the player.