Skip to content

Commit

Permalink
python: update high card experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
vpayno committed May 24, 2024
1 parent 15b0ea6 commit d171963
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,16 @@ stage3: both microbits loop sending and receiving until they receive the other's

## [High Card](./src/high-card.py)

Simple two player high card game. Keeps the selection simple to just 0 to 9 inclusive.
Simple two player high card game.
Each player gets a random number from 0 to 9, inclusive, and then exchange them to see who won.

stage1: radio group selection

- `button_a`: scroll backward between `0` and `255` by decrements of 7.
- `button_b`: scroll forward between `0` and `255` by increments of 7.
- `pin_logo`: confirms radio group selection.

stage2: card selection
stage2: card selection - replaced with RNG

- `button_a`: scroll backward `[0..9]`
- `button_b`: scroll forward `[0..9]`
Expand Down

0 comments on commit d171963

Please sign in to comment.