librejack

Blackjack clone written in java
git clone https://github.com/michaelneuper/librejack.git
README | Files | Log | Refs | LICENSE

commit a033840fa43d328c009fc085d2e89342177e8fba
parent db1a67feb5e6ae78b7261f773e1b7c4e73eb5cae
Author: Michael Neuper <michael@michaelneuper.com>
Date:   Sat, 13 May 2023 09:38:51 +0200

Add functionality for Surrender button

Diffstat:
Msrc/view/MainUI.java | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/view/MainUI.java b/src/view/MainUI.java @@ -399,7 +399,8 @@ public class MainUI extends javax.swing.JFrame { }//GEN-LAST:event_jButtonDoubleDownActionPerformed private void jButtonSurrenderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSurrenderActionPerformed - // TODO add your handling code here: + game.setBalance(game.getBalance() + (game.getBet() * 0.5)); + jButtonDealActionPerformed(evt); }//GEN-LAST:event_jButtonSurrenderActionPerformed private void jButtonDealActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDealActionPerformed