microsoft / microsoft/pxt-microbit

The result of ‘Tug-Of-LED’ is inconsistent on sim and hardware

Open
#3,176 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

device P2
Dominant language
TypeScript
Stars
804
Forks
721
Avg merge
2d 9h
Merged PRs (30d)
2

Description

Describe the bug
The result of ‘Tug-Of-LED’ is inconsistent on sim and hardware

Steps to reproduce the behavior
1.Navigate to https://makecode.microbit.org/beta#
2.Games---->Tug-Of-LED
3.Run it on the sim
4.Run it on the hardware

Actual behavior
The result on simulator:
When I press button A many times, there just shows 'A wins'(There doesn't show a dot before A wins)
But when I press button B many times, there just shows '·B wins'
1
The result on hardware:
When I press button A many times, there just shows '·A wins'
But when I press button B many times, there just shows '·B wins'

Additional context
1.OS: Windows(rs6)
2.makecode.microbit.org version: 3.0.1
3.Microsoft MakeCode version: 5.37.83

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Tug-Of-LED game from the linked MakeCode beta URL on both the simulator and micro:bit hardware, using repeated presses of buttons A and B. No source files or tests are named, so trace the Tug-Of-LED entry point and compare how the winning message is rendered in each environment. Done means both environments display the same result for either winner.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
embedded-iot, game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.