I am trying to build a simple game of "Uno" in java. I just want to be able to display each step of the game without any user input. The computer is playing itself in a way. I have made the shuffle and deal class for the game, but I am not sure how to display the rest of the game.
I would like the game to display the two players' hands, and then each step the players make until the game is over.
Any advice? Thanks!
Here is the code I have so far:
I would like the game to flow some what like this:
Uno Game flow:
Shuffle cards Deal cards Display top card
Players take turn placing cards until they are out of cards
If players cannot play, they must draw one card
The player with one card left must say “uno”
Thank you! please let me know if I can make anything more clear.
Hi Austin, I am think that the company has probably patented the game. I suggest against making or using the name of the company or it's characteristics in your code or posting it in forums. Maybe you can attempt a similar game using regular card deck ?
I think your code for shuffling can be improved a lot using Collections.shuffle() method and the code can be improved using enums.