A Squeak Smalltalk developer
Budjetti $30-250 USD
this is the task I need to be done.
It can be only on squeak smalltalk.
Please approach if you can do it.
A standard deck of cards has 52 playing cards. The cards are divided into 4 series: Spade,
Heart, Diamond and Club. Each series has 13 cards marked: numbers 2-10,
Prince (J), Queen (Q), King (K) and Ace (A.
You have to realize the game "War", which is one of the oldest card games. in the game
It has at least 2 participants. The participants are dealt all the cards in the deck, so that each participant has
An equal number of cards (up to a difference of one card). The pile of cards is placed face down next to each
Participant. In each turn, each participant turns over the card that is at the top of the pack and places it in front of him. If
The values of all the opened cards are different from each other (they are all different), the participant whose card has the value
The highest takes all the open cards of the other participants. The value of the card is according to
The numerical value, when a prince is greater than any number, a queen is greater than a prince, a king is greater than a queen and an ace is greater
from a king
But, if there are cards of the same value (not only the highest cards) a situation occurs
War: In this situation the players with the cards of the same value place 3 more cards on the deck
which is in a state of war. Now a check is made to see who wins the round. The test is carried out between all
The players (even those who were not at war). If the values of all the cards at the top of the pile (of all
The players, even those who were not in a state of war) are different, the winner of the round is the one with the highest card
And he is the one who takes all the cards. If there are still cards of the same value on top of the pile, perform
Another war process and so God forbid it repeats.
In the process of war, a player who runs out of cards is left with the last card placed in his pile.
A player who runs out of cards (after the end of the round) retires from the game.
The winning player is the player who received the entire pack of cards. (That is, all the other participants ran out
You have to play the game which is played automatically.
The game can be played between 2 and 4 players.
The game will be presented graphically:
Each player will be shown the number of cards he has in the pack.
On the table in front of each player will be shown the top card in the war.
The state of war, and winning the round (including after state of war) will be clearly displayed.
When the game ends, a message is displayed and an option to start another game.
During the game the user can control the running of the game. When the mouse is on the play area
The game stops at the end of the round and another mouse click will make another round (including stopping between modes
the war). When the mouse is not in the game area - the game runs non-stop.
The game can be started with a pack of cards randomly distributed among the players or with a pack
A set of cards is passed as an argument at the start of the game. An example must be provided to run the game with
A set of cards.
3 freelanceria on tarjonnut keskimäärin $152 tähän työhön
Hello. I read your description carefully. I am familiar with Squeak smalltalk so I can make perfect result in time. Let's discuss about your project. Hope to reply from you soon.