Inspiration

Our inspiration for this was a viral single-player web game, classic rock/paper/scissors, and endless debates on the playground.

What it does

The Last Word allows two players to compete in a battle of wits. They challenge each other with different words and ChatGPT analyzes and decides which word would win in a battle. This lets players choose literally anything they want for gameplay.

How we built it

We built this using the ChatGPT Helper and TurnBased components. We used some custom scripts to manage the game flow for each turn

Challenges we ran into

The Turn Based component needs to access personally identifying information which then disables remote API access. We originally thought that the component was self contained and were told we could use any of the APIs in the asset library, but when trying to test on-device we discovered this issue.

To add some visual flair, we originally wanted to generate images on the fly, but that is not currently supported in Lens Studio so we switched to an animation of the words to add some pizzazz to the lens.

Accomplishments that we're proud of

We created a separate turn-based-esque lens that runs on a single device for demonstration purposes. This allowed us to access the power of ChatGPT for the game without the restrictions from the TurnBased component. Then separately in Lens Studio we kept the turn-based version intact to demonstrate the full lens.

What we learned

We learned that you should load all components into the lens and try testing on-device much earlier in the process to identify any potential compatibility issues.

What's next for The Last Word

Overcoming the current limits on the turn-based component, and more polish and potential integration with an image generation API would be an ideal stretch goal.

Built With

Share this project:

Updates