GAMES TWO: LESSON TWENTY-ONE: Simple Card Game
Take a look at these pages and try out the game:
Information about game
Cards Game
Source code for CARDS.java
The following two methods are the most crucial to the game. Study them and
make sure you understand how they work.
public void setValues(){
answer = 0;
setCards();
int[] v_array = new int[14]; //no value stored at zero
for(int i = 0; i
ASSIGNMENT:
Do the following:
- Make a flashier ending (something using TimerTask to do a little
animated production).
- Make TWOs wild so that they are automatically multiplied with highest
card(s) dealt.