Our Advantage

  • 100 % Original
  • Any Urgency
  • Over 500 Writers
  • 15% Discount
  • No Hidden Charges
  • 24/7 Live Support
  • Secured Payments
  • High Quality Paper
  • Privacy Guaranteed
  • Any Citation Style

Java

/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package poker;

import java.util.ArrayList;

/**
 *
 * @author adamt
 */

public class Player {

    private int money;
    private int wager;
    private Hand hand;

public Player(){
money=1000;
wager=0;
hand=new Hand();
}

public Hand getHand(){
return hand;
}

public void setWager(int i){
wager=i;

}

public int getWager(){
return wager;

}

public int moneyGained(int i){
    money+=i;
    return money;
}

public int moneyLost(int i){
    money-=i;
    return money;
}

public int getMoney(){
return money;

}

You can leave a response, or trackback from your own site.

Leave a Reply

Powered by WordPress | Designed by: Premium WordPress Themes | Thanks to Themes Gallery, Bromoney and Wordpress Themes