protected void receiveInfo(GameInfo info) { // TODO Auto-generated method stub Bid bid = DudoState.currentBid; if (info instanceof NotYourTurnInfo) return; // get the dice of the normal player // compare to most recent bid int currentVal = bid.currentVal; int currentFrequency = bid.currentFreq; // if it was a "not your turn" message, just ignore it if (info instanceof NotYourTurnInfo) return; // have a small chance that Dudo will be called double chance = Math.random(); if (chance < .1) { // must send in the game action // game.sendAction)(new DudoMoveAction()) } // increases the frequency not the value bid.setLastBidVal(currentVal); bid.setLastFreq(currentFrequency); int increase = (int) Math.random() * 2; currentFrequency = currentFrequency + increase; currentVal = currentVal + 1; bid.setBidFreq(currentFrequency); bid.setBidVal(currentVal); // if bid has values that are not probable call Dudo on recent player // game.sendAction(new DudoMoveAction(this, ,)); // if not then, make a guess within a range of two game.sendAction(new DudoMoveAction(this, currentVal, currentFrequency)); }