Skip to content

Add Typing Game type challenge#5

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-typing-game-feature
Draft

Add Typing Game type challenge#5
Copilot wants to merge 2 commits intomainfrom
copilot/add-typing-game-feature

Conversation

Copy link

Copilot AI commented Jan 5, 2026

Implements a medium-difficulty TypeScript type challenge that validates string equality in the type system, simulating a typing game where users must match a target string exactly.

Challenge Structure

  • Number: 35300
  • Difficulty: Medium
  • Tags: string, game, template-literal

Implementation

Creates standard challenge files:

type TypingGame<Target extends string, Typed extends string> = any

Users implement a type returning true for exact matches, false otherwise.

Test Coverage

17 test cases covering:

  • Exact matches vs partial/incorrect input
  • Case sensitivity
  • Empty strings
  • Special characters and spaces
  • Length validation
type Result1 = TypingGame<'hello', 'hello'>  // true
type Result2 = TypingGame<'hello', 'hel'>    // false (incomplete)
type Result3 = TypingGame<'Hello', 'hello'>  // false (case-sensitive)

The challenge tests understanding of conditional types and template literal type operations for string comparison.

Original prompt

This section details on the original issue you should resolve

<issue_title>A typing game.</issue_title>
<issue_description></issue_description>

<agent_instructions>It is an option.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: ewdlop <25368970+ewdlop@users.noreply.github.com>
Copilot AI changed the title [WIP] Add typing game feature Add Typing Game type challenge Jan 5, 2026
Copilot AI requested a review from ewdlop January 5, 2026 01:10
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.

A typing game.

2 participants