Skip to content

Feat: matching student view#2

Merged
tpreston2u merged 5 commits intomainfrom
feat--matching-student-view
Jul 24, 2023
Merged

Feat: matching student view#2
tpreston2u merged 5 commits intomainfrom
feat--matching-student-view

Conversation

@tpreston2u
Copy link
Copy Markdown
Contributor

This PR incorporates the matching game student view.

See #1 for information about how to test the code.

Copy link
Copy Markdown

@rayzhou-bit rayzhou-bit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should get the flashcard PR merged first before doing any more work on this one. You will probably need to rebase this PR after you merge the flashcard PR. The .pyc files should be left out of this PR too.

Comment thread games/games.py
Comment on lines +351 to +358
self.matching_id_dictionary_index[self.matching_id_list[i]] = i//2
self.matching_id_dictionary_index[self.matching_id_list[i+1]] = i//2

self.matching_id_dictionary_type[self.matching_id_list[i]] = "term"
self.matching_id_dictionary_type[self.matching_id_list[i+1]] = "definition"

self.matching_id_dictionary[self.matching_id_list[i]] = self.list[i//2]['term']
self.matching_id_dictionary[self.matching_id_list[i+1]] = self.list[i//2]['definition']
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would these make more sense to store this in a format like:

{
  'ABCDEF': {
    type: 'term',
    id: 0,
  },
  'GHIJKL': {
    type: 'definition',
    id: 0,
  }
}

@rayzhou-bit rayzhou-bit self-requested a review July 24, 2023 19:09
@tpreston2u tpreston2u merged commit 6352713 into main Jul 24, 2023
@papphelix papphelix deleted the feat--matching-student-view branch November 21, 2025 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants