American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – AI Agent – Gamas

April 18 @ 6:00 pm - 7:00 pm

Today We Did
  1. We started spaceship-survival game powered by AI.
  2. We did the generate_scenario feature.
Homework
  1. Add code in spaceship_game.py so it will do the following
    1. After displaying the provided scenario, ask user for their action for survival.
    2. Create another function “survive_or_not(scenario, action)” and submit the action to the AI call and give a clear instruction to decide whether or not the action will result in survive or not survive. And on top of that, you want the AI to give you the reason in either outcome.
    3. Since AI API that we are using is stateless, meaning it does not have any memory or history of your conversation, you need to include the scenario that AI provide back to the AI.

Details

Date:
April 18
Time:
6:00 pm - 7:00 pm