I have started programming in Java couples weeks ago. I'm trying to create a simple Java card game for my first college assignment.
Game description:
There are two players. Each player is receiving 1 RANDOM card and two
decisions:
1. Grab another card
or
2. Pass
(The game is similar to game of war)
Can someone show me how to generate a random card value from the code below?
My code:
Card/Deck class
Main program
Player class
Thank you for help
dimanche 10 décembre 2017
Java: Random number (card game)
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire