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

オープン
#127 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
56/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
frontend, game-dev

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
3
フォーク
3
平均マージ
10時間 22分
マージ済み PR(30日)
6

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TMHSDigital/GH-Arcade のほかの issue

TMHSDigital/GH-Arcade の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。