Neon Golf: add hot-seat stroke play for 2 to 4 players

Aberta
#127 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
56/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
typescript
Domínio
frontend, game-dev

Direção de pesquisa

Read games/golf/scenes/MenuScene.ts, games/golf/scenes/GameScene.ts, and games/golf/scoring.ts, then compare the multiplayer flow in games/tanks/scenes/MenuScene.ts and shared/scenes.ts. Run npm test and review games/golf/scoring.test.ts; done means the menu offers 2 to 4 players, each player's score is summarized, tee order is covered, and a completed round shows a winner.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

enhancement help wanted severity: medium

Summary

Neon Golf is solo only. Mini golf is the classic pass-the-device game, and its turn-based shot loop needs no simultaneous input, so it suits hot-seat stroke play for 2 to 4 players.

Where

  • games/golf/scenes/MenuScene.ts:23-28: no modes
  • games/golf/scenes/GameScene.ts:111-118: init() takes no data; one card: number[]
  • games/golf/scoring.ts:63, 83: scorecardLines and summarize work on one player
  • games/tanks/scenes/MenuScene.ts:42-46 and shared/scenes.ts:187 (showMatchResult): the existing pattern for a 2-player mode

Proposal

  • Add menu modes 1 to 4 PLAYERS, with data: { players: n }.
  • Keep a card per player and alternate players on each hole, with each holing out before the next tees off.
  • Color the ball per player, and show one scorecard row per player.
  • End multi-player rounds with showMatchResult, which records a play but skips the solo best, as Tanks does.

Who benefits

Two or more people sharing one phone or tablet. Today they have to play separate full rounds and compare totals.

Open questions

  • Tee order: fixed order, or lowest score so far tees first?
  • Tie-break rule.
  • Related to #113 (alternating whole runs), but golf wants alternation per hole and a shared scorecard.

Acceptance criteria

  • Menu offers 2 to 4 players. The scorecard shows every player and the round ends with a winner.
  • games/golf/scoring.test.ts covers the per-player summary and the tee-order rule.

Getting started

  • Relevant files: games/golf/scenes/*, games/golf/scoring.ts
  • How to run tests: npm test

Filed by repo-audit/full-audit at a93de2e. Severity: medium. Effort: M. audit-key: enhancement|games/golf/scenes/GameScene.ts|hot-seat

Linguagem predominante
TypeScript
Estrelas
3
Forks
3
Merge médio
10h 22min
PRs com merge (30d)
6

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de TMHSDigital/GH-Arcade

Todas as issues de TMHSDigital/GH-Arcade

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.