Assignment: Higher or Lower Card Game

This is the program I’ve written for my java assignment. It is a higher or lower card game, the player draws their card, enters their credits, then begins guessing if the card will be higher, lower or equal.

There needs to be at least three buttons, one to enter credit, one to guess higher and one to guess lower. There should be at least one textfield to top up the credit pool using a String to int command. The cards must change when the buttons are pressed and the player informed when they are out of credits.

The only things left for me to add that are required are sounds/music and the ability for the cards to be disabled as they are used so no one card repeats.

I want to add a bank system, where by instead of the player determining how much credit they start with, they have 100 banked, which they can then add to their credit. As the player gains more credits they can bank the extra for reassurance that they will never have absolutely no credits in the game. If however the player does end up with 0 credits and 0 banked, it will then be game over and an appropriate screen would display.

Source code will be posted in January when the assignment is handed in.

 

Click on through to play the game:

Leave a Reply

Your email address will not be published. Required fields are marked *