American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Ai Agent – Gamas

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

Today We Did
  1. We continued with Spaceship Ai Survival Game.
  2. We added the AI Judge portion to decide if strategy user provided is sufficient for someone to survive.
  3. We enforce the AI to response in JSON format with specific required field to get a more deterministic response and easy parsing.
  4. Utilized json Python built-in feature to parse AI response.
Homework
  1. create streamlit.py page. Import spaceship_game inside streamlit.py.
  2. call generate_scenario() function from streamlit.py and display the scenario in streamlit page. The goal is to have the top portion of page below all the way until blue text under “The Scenario” section. We will do the rest next week in the class.

Details

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