/// <summary> /// Get the card that the Ai passed in player will play /// </summary> /// <param name="hand">The current cards that are in play</param> /// <param name="player">The player that will be playing the card</param> /// <returns>The card played</returns> public async System.Threading.Tasks.Task<Card> GetAiCardPlay(Hand hand, Player player) { if (_feature.FeatureEnabled(AiSimulation.SimService)) { var sim = new BasicTrumpSimluation(); using (var client = new HttpClient()) { // translate inputs to the sim object var response = await client.PostAsJsonAsync("api/api/BasicTrumpSimulation", sim); if (response.IsSuccessStatusCode) { var card = response.Content.ReadAsAsync<Dto.AiSimulation.Card>(); // map to our card throw new NotImplementedException(); } else { // errored out yo throw new NotImplementedException(); } } } else { var aiSim = new AiSimulation(); return aiSim.PlayCard(hand, player); } }
/// <summary> /// Adds the current card to the hand /// </summary> /// <param name="card">Card that was played</param> /// <param name="player">The player that played the card</param> public void HandleCardPlayed(Card card, Player player) { throw new NotImplementedException(); }
public Card PlayCard(Hand h, Player p) { throw new NotImplementedException(); }