Skip to content

Game generation: Allow users to supply one seed word, while the other is generated #8

@ChazWinterYT

Description

@ChazWinterYT

Right now, you can generate both seed words, or supply both seed words.

Requested function is to supply one, and generate the other.

The existing function in backend/lambdas/create_random/random_game_service -> select_two_words could be modified to accept a single seed word. If provided, that becomes word1.

Then, you can proceed normally to get word2. Or if you want the provided word to be second, you just swap the word chaining logic (make the first letter of word1 match the last letter of word2), then just swap the word order when returning them.

The handler would need to be updated to accept one seed word for a two word puzzle, and the frontend would need to provide a single seed word as an option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions