Newer
Older
Algolike / src / main / java / models / SucceedDrawA.java
package models;


import java.util.*;

public class SucceedDrawA {
	private HandsB handsB;
	private Deck deck;
	private HandsA handsA;
	private Map.Entry<Boolean, Integer> value;
	public SucceedDrawA(HandsB handsB, Deck deck, HandsA handsA) {
		this.handsB = handsB;
		this.deck = deck;
		this.handsB = handsB;
	}
	public void inputDrawA(int guess, List<Map.Entry<Object, Boolean>> b, int target) {
		this.value = new AbstractMap.SimpleEntry<>((handsB.getValue().get(target).getKey()==guess), target);
		List deck = this.deck.getValue();
		this.handsB.updateSucceedDrawA(value, deck);
		this.deck.updateSucceedDrawA(value);
		this.handsA.updateSucceedDrawA(value, deck);
	}
	public Map.Entry<Boolean, Integer> getValue() {
		return value;
	}
}