First: would be to read in all the taxi cards into an array deque called taxiCards.
Part 2: Deques and destination cards
Secondly: Read in the destination cards from the destination card file into an array deque called destCards.
Part 3: Shuffle and Deal Cards (partially completed)
Then use Collections.shuffle on taxiCards and destCards so that they are randomly shuffled.
After shuffling, deal 2 taxi cards to each player's taxiCard than deal 5 cards to the activeTaxiCards array deque.
(For reference, they're the same ones that are drawn face up.)
Then deal 2 destination cards to each player. The player has the choice to keep one or both destination cards. If they choose to only take one destination card, add it to the back of the destCard deque.
In the scoring part of the switch case, tally up the scores of each players destination cards, the points for each claimed route(as shown on the board table).
1 point for roads of length 1
2 points for roads of length 2
4 points for roads of length 3
7 points for roads of length 4
Important: Make sure to decrease points if a destination card has not been met. Decrease the amount of cards worth.
Also, give a point for each tourist attraction connected to one or more route.
When a player starts the game, they have the option of getting 2 total destination cards. They can either keep one or both of them. It would be nice if the player had a nice GUI pop up that gave them the option and showed them the image of the destination card. I would put this right after where you read in each destination cards.
Inside that file manually read in the worth, starting city, ending city, and card number.
The format should look like this: 2 12 13 01
Graph Details
Each vertex in the graph can be represented as a number from 0 to 13
0- Lincoln Center
1- Central Park
2- Midtown West
3- Times Square
4- United Nations
5- Chelsea
6- Empire State Building
7- Gramercy Park
8- Greenwich Village
9- Soho
10- East Village
11- China Town
12- Lower East Side
13- Wall St.
14- Brooklyn
Part 2: Reading in and Constructing the Destination Card Object
I recommend using scanners to read from the file.
The worth and starting and ending city will be read in as ints. The card number can be read in as a string.
For the last part, the card number, that corresponds to what image we are using as the destination card. we can use the card number to read in a new image as we did in the recent lab: toolkit.getImage("assets\dest-cards\dest-card"+cardNum+".jpg");
Every line or part of a line you read in should be added to a new destination card to construct.
It would be nice if our game had some music! Maybe play some music for the main menu screen then another song on loop for gameplay. It would be also awesome to have some sounds for picking up a card, claiming a route, pressing a button, etc. It's up to whoever wants to add something! I recommend creating another file within assets called sounds that holds all of the music and sounds.