Back to project page RussianTripleForAndroid.
The source code is released under:
GNU General Public License
If you think the Android project RussianTripleForAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package eu.veldsoft.russian.triple; /* w w w. j a v a 2 s . c om*/ public class ComputerPlayer extends Player implements AIBidder { public ComputerPlayer(String name) { super(name); } @Override public boolean canDoBid(int currentValue) { // TODO return false; } @Override public Bid doBid(int currentValue) { Bid bid = null; //TODO if(Util.PRNG.nextDouble() < 0.95) { bid = new Bid(currentValue+1, this); } else { bid = new Bid(0, this); } return bid; } }