Skip to content

feat: add game timer and game history components#2

Open
AdekunleBamz wants to merge 1 commit intophessophissy:mainfrom
AdekunleBamz:feat/game-timer-history
Open

feat: add game timer and game history components#2
AdekunleBamz wants to merge 1 commit intophessophissy:mainfrom
AdekunleBamz:feat/game-timer-history

Conversation

@AdekunleBamz
Copy link

Summary

This PR adds game timer and game history functionality to MiniSudoku.

New Features

GameTimer Component

  • Tracks elapsed time during gameplay
  • Displays time in MM:SS or HH:MM:SS format
  • Auto-starts when game begins
  • Includes callback for time updates

GameHistory Component

  • Displays game history with wins/losses
  • Shows win rate percentage
  • Tracks total games, wins, and losses
  • Expandable list to show all games
  • Shows game date, difficulty, and completion time
  • Color-coded results (green for wins, red for losses)

Files Added

  • src/components/GameTimer.tsx - Game timer with live updates
  • src/components/GameHistory.tsx - Game history and statistics

UI Improvements

  • Better game session tracking
  • Visual feedback for game duration
  • Statistics summary in history view
  • Expandable/collapsible game list

@vercel
Copy link
Contributor

vercel bot commented Jan 8, 2026

@cline is attempting to deploy a commit to the phessophissy's projects Team on Vercel.

A member of the Team first needs to authorize it.

@AdekunleBamz AdekunleBamz force-pushed the feat/game-timer-history branch from f5bb5c9 to 777bc92 Compare January 8, 2026 20:26
- Add GameTimer component showing elapsed time during gameplay
- Add GameHistory component tracking wins/losses and stats
- Include win rate calculation and expandable game list
@AdekunleBamz AdekunleBamz force-pushed the feat/game-timer-history branch from 777bc92 to 7efabc6 Compare January 8, 2026 20:37
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.

1 participant