GOPS Game online?

DNbruh - Aug 23 - - Dev Community

I have always enjoyed the card game Pure Game of Strategy, and I need to practice front end web dev. So I'm going to use the deckofcardsapi to build this.

"GOPS, also known as Goofspiel, stands for The Game of Pure Strategy. It is a challenging game for card players of all levels, with no luck element at all. You will need to bring your best logic and your sharpest mind to take on the Coppercod AIs at this game. Are you up to the challenge?

To win GOPS, you must collect more points than your opponent by taking more Diamonds. You are dealt all of the Spades and your opponent is dealt all of the Hearts. The suit of Clubs isn’t used in this game. Each round, a Diamond card is revealed, and players simultaneously select a card from their hand (Spades for you, Hearts for your opponent) to bid for the Diamond. The player with the highest bid wins the Diamond, and the value of the Diamond card is added to their score."

"Each suit is ranked Ace (low) – King (high).

The aim of the game is to win Diamonds by bidding cards from your own hand against your opponent. Players make ‘closed bids’ for the top, face up, prize Diamond by selecting a card from their hand. These cards are then revealed simultaneously, and the player making the highest bid takes the competition card. Rules for tied bids vary. Either the competition card is discarded, or its value may ‘roll over’ to the next round so that two or more cards are competed for with a single bid card. (see Settings).

The cards used for bidding are discarded, and play continues with a new upturned prize card.

After 13 rounds the game is scored. Points are totalled equal to the sum of the cards won – Ace is worth one point, up to King worth 13 points."

It should be simple, so I be able to store three pile, and count scores and that. Gonna make it work today.

. . .
Terabox Video Player