We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f6d83f commit 134bd87Copy full SHA for 134bd87
src/memory_game.rs
@@ -14,9 +14,13 @@ use std::time::Duration;
14
/// It provides methods to flip cards, check for matches, and reset the game.
15
/// The rendering logic uses GPUI's element system to create a responsive and visually appealing game interface.
16
pub struct MemoryGame {
17
+ /// The collection of memory cards in the game.
18
cards: SmallVec<[MemoryCard; 12]>,
19
+ /// Indexes of currently flipped cards.
20
flipped_indexes: SmallVec<[usize; 12]>,
21
+ /// The number of matches found so far.
22
matches: u8,
23
+ /// Flag indicating if the game is currently checking for a match.
24
is_checking: bool,
25
}
26
0 commit comments